A - Not X Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 100 点

問題文

1 以上 3 以下の整数 X が与えられます。

1 以上 3 以下の整数であって X と異なる整数を 1 つ出力してください。

制約

  • X は 1 以上 3 以下の整数

入力

入力は以下の形式で標準入力から与えられる。

X

出力

1 以上 3 以下の整数であって X と異なる整数を 1 つ出力せよ。

条件を満たす整数が複数存在する場合、どれを出力しても正答となる。


入力例 1

1

出力例 1

2

1 以上 3 以下の整数で X(=1) と異なる整数は 2,3 です。

したがって、2 または 3 のいずれかを出力すると正答となります。


入力例 2

2

出力例 2

3

入力例 3

3

出力例 3

2

Score : 100 points

Problem Statement

You are given an integer X between 1 and 3, inclusive.

Output an integer between 1 and 3, inclusive, that is different from X.

Constraints

  • X is an integer between 1 and 3, inclusive.

Input

The input is given from Standard Input in the following format:

X

Output

Output an integer between 1 and 3, inclusive, that is different from X.

If there are multiple integers satisfying the condition, any of them will be accepted.


Sample Input 1

1

Sample Output 1

2

The integers between 1 and 3, inclusive, that are different from X(=1) are 2 and 3.

Thus, outputing either 2 or 3 will be accepted.


Sample Input 2

2

Sample Output 2

3

Sample Input 3

3

Sample Output 3

2