#include <cstdio>
#define inf 0x3f3f3f3f
using namespace std;
long long val;
//long long M[205][205];
int i,j,step;
int main()
{
   
    step=128;
    for(i=0; step; step>>=1)
        if(i+step<=200)
        {
            printf("%d %d\n",i+step,1);
            fflush(stdout);
            scanf("%lld",&val);
         
            if(val<0)
                i+=step;
        }
    step=128;
    for(j=0; step; step>>=1)
        if(j+step<=200)
        {
            printf("%d %d\n",i,j+step);
            fflush(stdout);
            scanf("%lld",&val);
            if(val<0)
                j+=step;
        }

    return 0;
}