import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = 0; int r = 100001; int ans1 = 0; while(l < r) { System.out.println(l + " " + 0); System.out.flush(); int ret1 = sc.nextInt(); int med = (l + r) / 2; System.out.println(med + " " + 0); System.out.flush(); int ret2 = sc.nextInt(); if(ret2 == (ret1 + l - med)) { ans1 = med; l = med + 1; } else { r = med; } } l = 0; r = 100001; int ans2 = 0; while(l < r) { System.out.println(ans1 + " " + l); System.out.flush(); int ret1 = sc.nextInt(); int med = (l + r) / 2; System.out.println(ans1 + " " + med); System.out.flush(); int ret2 = sc.nextInt(); if(ret2 == (ret1 + l - med)) { ans2 = med; l = med + 1; } else { r = med; } } System.out.println(ans1 + " " + ans2); System.out.flush(); } }