/** * @FileName a.cpp * @Author kanpurin * @Created 2020.06.04 17:42:15 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { cout << 0 << " " << 0 << endl; cout << flush; ll s;cin >> s; if (s == 0) { return 0; } cout << 1000000000 << " " << 0 << endl; cout << flush; ll t; cin >> t; if (t == 0) { return 0; } cout << (s + 1000000000 - t) / 2 << " " << (s - 1000000000 + t) / 2 << endl; cout << flush; return 0; }