Fimka Sobak, unlike Ellochka the Cannibal, was reputed to be a cultured girl. In addition to her favorite smart buzzword, the …-ality, she learned a remarkably entertaining game, "Guess the modulo".
The game is played in the following way. There are two players: the leader and the player. The leader initially thinks of two numbers: N --- the number of numbers to be summed and M --- the modulo. The leader tells the player the number N, and the player must guess the number M. Moreover, the leader thinks of an array of (N−1) numbers and tells it to the player.
During the game the player tells the leader numbers to get more information. Every time the player says a number, the leader:
As soon as the player guesses the value of the modulo M, he or she informs the leader.
It is known that the modulo M lies within the range between 2 and 109, inclusively.
The first line of the input stream contains a single integer N (2≤N≤100). The following line contains (N−1) space-separated integers ranging from 0 to 109 inclusively.
The following lines of the input stream contain answers to questions. Each answer is the sum of the last N elements of its array by modulo M.
You should print the queries and the player's answer into the standard output.
Player query format: "? p", p --- the number added by the player to the array. The number p must be integer and must lie within the range from 0 to 109 inclusively.
Player answer format: "! M", M --- the modulo in question.
Make sure that each query ends with a line break and that you flush the output stream buffer (the flush command of the language). Otherwise the solution may get the verdict Deadlock.