#include #define int long long using namespace std; signed main(){ puts("? 0 0");fflush(stdout); int d;scanf("%d",&d); vector>v; for(int i=0;i<=100;i++)for(int j=0;j<=100;j++)if(i*i+j*j==d)v.push_back({i,j}); for(int i=0;i<=100;i++)for(int j=0;j<=100;j++){ map>mp; for(auto[a,b]:v)mp[(a-i)*(a-i)+(b-j)*(b-j)]={a,b}; if(mp.size()==v.size()){ printf("? %d %d\n",i,j);fflush(stdout); int d2;scanf("%d",&d2); printf("! %d %d\n",mp[d2].first,mp[d2].second);fflush(stdout); return 0; } } }