import sys min = 1 max = 1000000000 while min != max: y = (min + max) // 2 print("? " + str(y)) sys.stdout.flush() a = input() if a == "1": min = y + 1 else: max = y print("! " + str(min)) sys.stdout.flush()