def abc(L,H): M=(L+H)//2 if(M==L): return M print('?',M) if input()=='0': return abc(L,M) return abc(M,H) print('!',abc(1,1000000001))