#include <iostream>
using namespace std;

long n,i,j,ok,poz,nr,poz2;
long ctb1(long x)
{
    long a=0,b=199,mij;
    while (a<=b)
    {
        mij=(a+b)/2;
        cout<<mij<<' '<<0<<'\n';
        cout.flush();
        cin>>nr;
        if (nr==x)
            return -1;
        else if (nr<x)
            a=mij+1;
        else
            b=mij-1;
    }
    return b;
}
void ctb2(long x,long poz)
{
    long a=0,b=199,mij;
    while (a<=b)
    {
        mij=(a+b)/2;
        cout<<poz<<' '<<mij<<'\n';
        cout.flush();
        cin>>nr;
        if (nr==x)
            break;
        else if (nr<x)
            a=mij+1;
        else
            b=mij-1;
    }
}
long ctb3(long x)
{
    long a=0,b=199,mij;
    while (a<=b)
    {
        mij=(a+b)/2;
        cout<<mij<<' '<<199<<'\n';
        cout.flush();
        cin>>nr;
        if (nr==x)
            return -1;
        else if (nr<x)
            a=mij+1;
        else
            b=mij-1;
    }
    return a;
}
int main()
{
    poz=ctb1(0);
    if (poz!=-1)
    {
        poz2=ctb3(0);
        if (poz2!=-1)
            for (int i=poz2;i<=poz;i++)
            {
                ctb2(0,i);
            }
    }
    return 0;
}