Bob lives in a country called HackerLand and in this country, there are cities numbered to and they form a tree. That is, there are undirected roads between these cities and every two cities can reach each other through these roads. The length of the road between city and city is (meaning if there is a road between city and city then the length will be ).
So a great scientist in HackerLand invented the new car in which Bob can travel from one city to another city in time where indicates bitwise xor of length of the roads in the simple path between city and . So Bob was curious to find the bitwise xor of all such that . Help Bob to find.
For example, if our country has cities then we have to find where denotes bitwise xor operator.
Input Format
Output Format
Print a single integer denoting our answer
Constraints
Note: The country HackerLand has a tree structure
For the given tree in the sample
If we xor all of them we will get a .