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(); System.out.println(0 + " " + 0); int v = sc.nextInt(); int X = (v - h + 100000) / 2; System.out.println(0 + " " + 100000); h = sc.nextInt(); System.out.println(0 + " " + 0); v = sc.nextInt(); 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(); } } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }