Ran feels boring at home, and wants to propose a math problem with Yukari and Chen!
So here's The Yakumo Family Problem:
Given an integer array , try to calculate the value of the following equation modulo :
means , and means bitwise XOR.
输入描述:
The first line contains one integer (), which means the length of . The next line contains integers, the -th integer means the value of ().
输出描述:
One integer, means the value of the equation modulo .