#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; auto ask = [&](int x, int y){ ll res = 0; cout << "1 " << x << " " << y << endl; cin >> res; return res; }; int l = -1'000'000'000, r = 1'000'000'000; while(l + 1 < r){ int mid = (l + r) / 2; ll v1 = ask(mid, 1000000000); ll v2 = ask(mid + 1, 1000000000); if(v1 <= v2) r = mid; else l = mid + 1; } int X = ask(l, 0) < ask(r, 0) ? l : r; l = -2'00'000'000, r = 2'00'000'000; while(l + 1 < r){ int mid = (l + r) / 2; ll v1 = ask(1000000000, mid); ll v2 = ask(1000000000, mid + 1); if(v1 <= v2) r = mid; else l = mid + 1; } int Y = ask(0, l) < ask(0, r) ? l : r; cout << "2 " << X << " " << Y << endl; }