#include #define MOD 1000000007LL using namespace std; typedef long long ll; typedef pair P; 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; } int main(void){ for(int i=0;i<3;i++){ int l=-101,r=101; for(int j=0;j<30;j++){ int midl=(l*2+r)/3; int midr=(l+r*2)/3; ans[i]=midl; int vl=ask(ans[0],ans[1],ans[2]); ans[i]=midr; int vr=ask(ans[0],ans[1],ans[2]); if(vlv){ best=j; bestv=v; } } ans[i]=best; } answer(ans[0],ans[1],ans[2]); return 0; }