Problem H. xor
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given positive integers , request: 


Among them, "" means bitwise XOR operation.

输入描述:

The first line contains a positive integer .


The second line contains positive integers 



输出描述:

Output an integer on a line, which is the answer, modulo .
示例1

输入

复制
3
2 5 4

输出

复制
172