Jamshid, a great king of ancient Persia, is looking for the cup of divination, a miraculous cup through which one could observe all over the universe. He has asked Shahrasb, a great wizard who lives in Alborz mountains, for his help.
Shahrasb told Jamshid that the cup is hidden somewhere in the Great Salt Desert, a large desert in the middle of ancient Persia, but he doesn't know its exact location. Furthermore, Jamshid can ask him several questions. In each question, Jamshid selects a point anywhere in Persia (inside or outside of the desert), and Shahrasb can use his magical powers to find the Katouzian distance between the cup and the selected point.
Each point in Persia has integer x and y coordinates in the range \[−109, 109]. The desert is a square region in the center, with x and y coordinates in the range \[−5×108, 5×108]. The Katouzian distance between two points (x,y) and (p,q) is calculated as ∣x−p∣⊕∣y−q∣, where ∣x−p∣ is the absolute value of (x−p), and ⊕ indicates bitwise XOR (exclusive OR).
Your task is to help Jamshid find the cup by asking Shahrasb a number of questions.