#include #define rep(i,a,b) for(int i=a;i=b;i--) #define fore(i,a) for(auto &i:a) #pragma GCC optimize ("-O3") using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); } //--------------------------------------------------------------------------------------------------- template int findMin(int L, int R, Func f) { //[L, R) int lo = L - 1, hi = R - 1; while (lo + 1 != hi) { int mi = (lo + hi) / 2; if (f(mi) <= f(mi + 1)) hi = mi; else lo = mi; } return hi; } /*---------------------------------------------------------------------------------------------------             ∧_∧       ∧_∧  (´<_` )  Welcome to My Coding Space!      ( ´_ゝ`) /  ⌒i     /   \    | |     /   / ̄ ̄ ̄ ̄/  |   __(__ニつ/  _/ .| .|____      \/____/ (u ⊃ ---------------------------------------------------------------------------------------------------*/ //--------------------------------------------------------------------------------------------------- int ask(int x, int y, int z) { printf("? %d %d %d\n", x, y, z); fflush(stdout); int d; cin >> d; return d; } void answer(int x, int y, int z) { printf("! %d %d %d\n", x, y, z); fflush(stdout); } //--------------------------------------------------------------------------------------------------- int ans[3]; int ii; void _main() { rep(i, 0, 3) { ii = i; ans[i] = findMin(-100, 101, [](int x) { ans[ii] = x; return ask(ans[0], ans[1], ans[2]); }); } answer(ans[0], ans[1], ans[2]); }