#include <iostream>

using namespace std;

int main () {
    int x, y, n = 199, alt;

    x = 0; y = n;
    while (1) {
        cout << x << " " << y;
        cout.flush ();
        cin >> alt;
        if (alt == 0)
            break;
        if (alt < 0)
            x ++;
        if (alt > 0)
            y --;
    }
    return 0;
}