#include using namespace std; int main(){ cout << "? 0 0" << endl; int x,y;cin>>x; if(x == 0){ cout << "! 0 0" << endl; return 0; } bool yet = false; int p,q; for(int i = 0; 100 >= i; i++){ for(int j = 0; 100 >= j; j++){ if(i*i+j*j == x && yet && (p-i)*(p-i)+(q-j)*(q-j) == y){ cout << "! " << i << " " << j << endl; return 0; }else if(i*i+j*j == x && !yet){ cout << "? " << i << " " << j << endl; cin>>y; if(y==0){ cout << "! " << i << " " << j << endl; return 0; } p=i;q=j; yet = true; } } } }