print('?', 100, flush = True) x = int(input()) if x == 99: print('!', 99, 100, flush = True) else: print('?', 99 - x, flush = True) B = int(input()) + 1 for t in range(1, 100): if (t + 100) % B == x: print('!', t, B, flush = True) break