i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);}