#include "bits/stdc++.h" using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair #define pll pair const int inf = 1000000001; const ll INF = 1e18 * 4; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout< 0) { int zu = z + haba, zd = z - haba; int d, du, dd; printf("? %d %d %d\n", x, y, z); scanf("%d", &d); printf("? %d %d %d\n", x, y, zu); scanf("%d", &du); printf("? %d %d %d\n", x, y, zd); scanf("%d", &dd); if (du <= d && du <= dd) { z = zu; } else if (dd <= du && dd <= d) { z = zd; } if (haba == 1) break; haba = (haba + 1) / 2; } haba = 100; while (haba > 0) { int yu = y + haba, yd = y - haba; int d, du, dd; printf("? %d %d %d\n", x, y, z); fflush(stdout); scanf("%d", &d); printf("? %d %d %d\n", x, yu, z); fflush(stdout); scanf("%d", &du); printf("? %d %d %d\n", x, yd, z); fflush(stdout); scanf("%d", &dd); if (du <= d && du <= dd) { y = yu; } else if (dd <= du && dd <= d) { y = yd; } if (haba == 1) break; haba = (haba + 1) / 2; } haba = 100; while (haba > 0) { int xu = x + haba, xd = x - haba; int d, du, dd; printf("? %d %d %d\n", x, y, z); fflush(stdout); scanf("%d", &d); printf("? %d %d %d\n", xu, y, z); fflush(stdout); scanf("%d", &du); printf("? %d %d %d\n", xd, y, z); fflush(stdout); scanf("%d", &dd); if (du <= d && du <= dd) { x = xu; } else if (dd <= du && dd <= d) { x = xd; } if (haba == 1) break; haba = (haba + 1) / 2; } printf("! %d %d %d\n", x, y, z); fflush(stdout); }