""" 100 + A = kB + y => 100 + A - y ≡ 0 (mod B) (100 - y - 1) + A = k'B + y2 => B - 1= y2 <=> B = y2 + 1 """ print('? 100') y = int(input()) if not (1 <= 100 - y - 1 <= 100): print(99, 100) exit() print(f'? {100 - y - 1}') y2 = int(input()) B = y2 + 1 for A in range(B): if (100 + A) % B == y and (100 - y - 1 + A) % B == y2: print('!', A, B) break