#include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair PII; typedef vector VI; typedef vector VVI; #define MP make_pair #define PB push_back #define inf 1000000007 int ask(int x, int y, int z) { int d; cout << "?" << " " << x << " " << y << " " << z << endl; cin >> d; return d; } void answer(int x, int y, int z) { cout << "!" << " " << x << " " << y << " " << z << endl; } int main(){ int xu=100,xl=-100,yu=100,yl=-100,zu=100,zl=-100; int x=0,y=0,z=0; while(1){ if(xu-xl<=2)break; int d = (xu-xl)/3; int xa = xu-d; int xb = xl+d; int a = ask(xa,y,z); int b = ask(xb,y,z); if(a<=b){ xl = xb; }else{ xu = xa; } } int p; int t; p = ask(xl,y,z); x = xl; for(int i=xl+1;i<=xu;i++){ t = ask(i,y,z); if(p>t){ x = i; p = t; } } while(1){ if(yu-yl<=2)break; int d = (yu-yl)/3; int ya = yu-d; int yb = yl+d; int a = ask(x,ya,z); int b = ask(x,yb,z); if(a<=b){ yl = yb; }else{ yu = ya; } } p = ask(x,yl,z); y = yl; for(int i=yl+1;i<=yu;i++){ t = ask(x,i,z); if(p>t){ y = i; p = t; } } while(1){ if(zu-zl<=2)break; int d = (zu-zl)/3; int za = zu-d; int zb = zl+d; int a = ask(x,y,za); int b = ask(x,y,zb); if(a<=b){ zl = zb; }else{ zu = za; } } p = ask(x,y,zl); z = zl; for(int i=zl+1;i<=zu;i++){ t = ask(x,y,i); if(p>t){ z = i; p = t; } } answer(x,y,z); return 0; }