#include #include #include #include #include #include #include #include #include #include #include int main() { const auto max = 10'0000'0000; std::cout << "0 0" << std::endl; int dis; std::cin >> dis; if (dis == 0) { return 0; } if (dis <= max) { std::cout << dis << " 0" << std::endl; int dis2; std::cin >> dis2; if (dis2 != 0) { std::cout << dis - dis2 / 2 << " " << dis2 / 2 << std::endl; std::cin >> dis; } } else { std::cout << max << " " << dis - max << std::endl; int dis2; std::cin >> dis2; if (dis2 != 0) { std::cout << max - dis2 / 2 << " " << (dis - max) + dis2 / 2 << std::endl; std::cin >> dis; } } }