#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); for(int i=0;i<100;i++) { cout << 0 << " " << i << endl; int d; cin>>d; if(d==0)return 0; } return 0; }