#include using namespace std; int main(){ cout << "? 0 0" << endl; int x,y;cin>>x; 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; p=i;q=j; yet = true; } } } }