#include using namespace std; int main() { cout << 0 << " " << 0 << endl; int k; cin >> k; cout << k / 2 << " " << (k + 1) / 2 << endl; int t; cin >> t; assert(t % 2 == 0); t /= 2; cout << k / 2 - t << " " << (k + 1) / 2 + t << endl; cin >> k; if (!k) return 0; cout << k / 2 + t << " " << (k + 1) / 2 - t << endl; cin >> k; return k; }