import sys left = 1 rigth = 10**9 mid = (left + right) // 2 res = 1 last_1_left = 0 while left < right: mid = (left + right) // 2 print('?', mid) sys.stdout.flush() res = int(input()) if res == 1: last_1_left = left left = mid + 1 else: right = mid - 1 print('!', last_1_left) sys.stdout.flush()