#include constexpr int INF = 100000; int query(int x, int y) { std::cout << x << " " << y << std::endl; int d; std::cin >> d; if (d == 0) std::exit(0); return d; } void solve() { int d1 = query(0, 0); int d2 = query(INF, 0); query((d1 - d2 + INF) / 2, (d1 + d2 - INF) / 2); } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }