#include "bits/stdc++.h" using namespace std; int ask(int x, int y, int z) { cout << "?" << " " << x << " " << y << " " << z << endl; int v; cin >> v; return v; } string answer(int x, int y, int z) { cout << "!" << " " << x << " " << y << " " << z << endl; string str; cin >> str; return str; } int search(int a[3], int i, int left, int right) { int b[3] = {a[0], a[1], a[2]}; while(left < right - 2) { int dist = right - left; b[i] = dist / 3 + left; int v1 = ask(b[0], b[1], b[2]); b[i] = dist * 2 / 3 + left; int v2 = ask(b[0], b[1], b[2]); if(v1 <= v2) right = dist * 2 / 3 + left; else left = dist / 3 + left; } return left + 1; } int main(int argc, char* argv[]) { int a[3] = {0}; for(int i = 0; i < 3; i++) { a[i] = search(a, i, -101, 101); } answer(a[0] + 1, a[1], a[2]); return 0; }