import java.util.Arrays; import java.util.Scanner; import java.util.concurrent.SynchronousQueue; class Main { int N, M; int[] X, Y; public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); System.out.println(100000 + " " + 0); int h = sc.nextInt(); if (h == 0) return; System.out.println(0 + " " + 0); int v = sc.nextInt(); if (v == 0) return; int X = (v - h + 100000) / 2; System.out.println(0 + " " + 100000); h = sc.nextInt(); if (h == 0) return; System.out.println(0 + " " + 0); v = sc.nextInt(); if (v == 0) return; System.out.println(X + " " + Y); int a=sc.nextInt(); if(a==0)return; int Y = (v - h + 100000) / 2; for (int i = -5; i <= 5; ++i) { for (int j = -5; j <= 5; ++j) { System.out.println((X + i) + " " + (Y + j)); int tmp = sc.nextInt(); if (tmp == 0) return; } } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }