l = 1 h = 10**9 while l != h - 1: m = (l+h) // 2 print('?', m) if int(input()) == 1: l = m else: h = m print('!', l)