#P278. 练45.3 小 B 的异或

练45.3 小 B 的异或

Description

Little B received a sequence of numbers, which contains nn numbers.
The sender wants to know the XOR result of these nn numbers, but Little B doesn't know how to calculate it, so he passes the problem to you.
To make it easier for you, he magically turned all nn numbers into 11. Now, you need to find the XOR result of these nn ones.
Below is the XOR table for aa and bb:

a b a⊕b
1 0 1
1 1 0
0 0 0
0 1 1

Input Format

A single line containing the integer nn (0n10180≤n≤10^{18}).

Output Format

A single integer, the answer.

Sample

2
0