XORXORXOR

XOR the value B into A exactly C times and print the result.

Easy2Bit manipulationMathInterviewNo attempts yetTime limit0.2sMemory limit512 MB

Problem

You are given three integers AA, BB, and CC. Start from AA and repeat the operation "XOR the current value with BB" exactly CC times.

In other words, print the value of (((AB)B))B(\cdots((A \oplus B) \oplus B) \cdots) \oplus B, where B\oplus B appears CC times. Here \oplus is the bitwise exclusive or.

Input

The first line contains AA, BB, and CC separated by spaces. (0<A,B,C1090 < A, B, C \le 10^9)

Output

Print the computed result as a single integer on the first line.