#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define sz size() #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #define rep(i,a,b) for(int i=(a);i<(b);++i) #define clr(a, b) memset((a), (b) ,sizeof(a)) #define MOD 1000000009 long long f(long long a){ cout << 0 << " " << a << endl; long long b; cin>>b; return b; } int main(){ long long left = 0; long long right = 100000; while(left != right){ long long d = (right - left) / 3; long long l = f(left + d); long long r = f(right - d); if(d == 0){ if(l > r)left++; else right--; } else{ if(l > r)left = left + d; else right = right - d; } } cout << 0 << " " << left << endl; long long b; cin>>b; cout << b << " " << left << endl; return 0; }