print("?", 100) k1 = int(input()) if k1 == 99: print("!", 99, 100) else: print("?", 100 - k1 - 1) k2 = int(input()) B = k2 + 1 for A in range(100): if (100 + A) % B == k1 and (100 - k1 - 1 + A) % B == k2: print("!", A, B) quit()