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