//#define __USE_MINGW_ANSI_STDIO 0 #include using namespace std; typedef long long ll; #define int ll typedef vector VI; typedef vector VVI; typedef vector VL; typedef vector VVL; typedef pair PII; #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(x) x.begin(), x.end() #define IN(a, b, x) (a<=x&&x T &chmin(T &a, const T &b) { return a = min(a, b); } template T &chmax(T &a, const T &b) { return a = max(a, b); } int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0}; // #define DEBUG int ansx = -55, ansy = 15, ansz = 20; double query(int x, int y, int z) { #ifdef DEBUG return sqrt((x-ansx)*(x-ansx) + (y-ansy)*(y-ansy) + (z-ansz)*(z-ansz)); #else cout << "? " << x << " " << y << " " << z << endl; int res; cin >> res; return res; #endif } signed main(void) { int x0 = -150, x3 = 150; while(x3-x0 > 2) { int x1 = (2*x0+x3)/3, x2 = (x0+2*x3)/3; // cout << x0 << " " << x1 << " " << x2 << " " << x3 << endl; // cout << query(x1, 0, 0) << " " << query(x2, 0, 0) << endl; if(query(x1, 0, 0) <= query(x2, 0, 0)) { x3 = x2; } else { x0 = x1; } } // cout << x0 << " " << x3 << endl; int x; double mi = INF; FOR(i, x0, x3+1) { double ret = query(i, 0, 0); if(ret < mi) { mi = ret; x = i; } } x0 = -150, x3 = 150; while(x3-x0 > 2) { int x1 = (2*x0+x3)/3, x2 = (x0+2*x3)/3; if(query(0, x1, 0) <= query(0, x2, 0)) { x3 = x2; } else { x0 = x1; } } // cout << x0 << " " << x3 << endl; int y; mi = INF; FOR(i, x0, x3+1) { double ret = query(0, i, 0); // cout << i << " " << ret << endl; if(ret < mi) { mi = ret; y = i; } } x0 = -150, x3 = 150; while(x3-x0 > 2) { int x1 = (2*x0+x3)/3, x2 = (x0+2*x3)/3; if(query(0, 0, x1) <= query(0, 0, x2)) { x3 = x2; } else { x0 = x1; } } // cout << x0 << " " << x3 << endl; int z; mi = INF; FOR(i, x0, x3+1) { double ret = query(0, 0, i); if(ret < mi) { mi = ret; z = i; } } cout << "! " << x << " " << y << " " << z << endl; return 0; }