d=1<<29,l;main(i){for(;d;l+=d*atoi(gets(&i)),d/=2)printf("? %d\n",l+d),fflush(0);l=!printf("! %d\n",l);}