left = 1
right = 10**9
while left != right:
	center = (left + right + 1)//2
	print("?", center, flush=True)
	c = int(input())
	if c == 1:
		left = center
	else:
		right = center-1
print("!", left)