#include #define REP(x,y,z) for(int x=y;x<=z;x++) #define FORD(x,y,z) for(int x=y;x>=z;x--) #define MSET(x,y) memset(x,y,sizeof(x)) #define FOR(x,y) for(__typeof(y.begin()) x=y.begin();x!=y.end();x++) #define F first #define S second #define MP make_pair #define PB push_back #define SZ size() #define M void RI(){} template void RI( int& head, T&... tail ) { scanf("%d",&head); RI(tail...); } using namespace std; typedef long long LL; int ans[3]; // 質問クエリ 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; } void bs(int id) { int l=-100, r=100, m1, m2; int d1,d2; while(r-l>=3) { m1 = (r-l)/3; m2 = m1*2 + l; m1 += l; ans[id] = m1; d1 = ask(ans[0], ans[1], ans[2]); ans[id] = m2; d2 = ask(ans[0], ans[1], ans[2]); if(d1>=d2) l = m1; else r = m2; } if(l!=r) { ans[id] = l; int d0 = ask(ans[0], ans[1], ans[2]); int tmp = l; REP(i,l+1,r) { ans[id] = i; d1 = ask(ans[0], ans[1], ans[2]); if(d1