Z=[47, 47, 43, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 16, 15, 13, 11, 9, 7, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 100, 1, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 1, 1] print('?',50); N=int(input()); print('?',Z[N]); M=int(input()) X=[set() for _ in range(101)] for A in range(1,101): for B in range(A+1,101): X[(50+A)%B].add((A,B)) Y=[set() for _ in range(101)] for i in range(101): for A,B in X[i]: Y[i].add(((Z[i]+A)%B,A,B)) for x,A,B in Y[N]: if x==M: print('!',A,B); exit()