import time A = 0 B = 10 ** 9 + 1 while B - A > 1: c = (A + B) // 2 print "? %d" % c response = raw_input() if response == 1: A = c else: B = c print "! %d" % c