print('?', 100) y = int(input()) if y == 99: print('!', 99, 100) else: print('?', 100 - y - 1) y2 = int(input()) b = y2 + 1 for a in range(0, 100): if (a + 100) % b == y and (a + 100 - y - 1) % b == y2: print('!', a, b) break