start = 1 end = 10 ** 9 while start != end: mid = start + (end - start + 1) // 2 print('?',mid) ans = int(input()) if ans == 1: start = mid else: end = mid - 1 print('!',start)