lower = 1 upper = 10**9 + 1 while lower + 1 < upper: mid = (lower + upper) // 2 print('? {}'.format(mid)) is_larger = int(input()) if is_larger: lower = mid else: upper = mid print('! {}'.format(lower))