Present
문제
Catherine received an array of integers as a gift for March 8. Eventually she grew bored with it, and she started calculated various useless characteristics for it. She succeeded to do it for each one she came up with. But when she came up with another one --- xor of all pairwise sums of elements in the array, she realized that she couldn't compute it for a very large array, thus she asked for your help. Can you do it? Formally, you need to compute
입력
The first line contains a single integer () --- the number of integers in the array.
The second line contains integers ().
출력
Print a single integer --- xor of all pairwise sums of integers in the given array.
힌트
In the first sample case there is only one sum .
In the second sample case there are three sums: , , . In binary they are represented as , thus the answer is 2.
is the bitwise xor operation. To define , consider binary representations of integers and . We put the -th bit of the result to be 1 when exactly one of the -th bits of and is 1. Otherwise, the -th bit of the result is put to be 0. For example, .
예제
예제 1
2 1 2
3
예제 2
3 1 2 3
2