package contest170505; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class BB { static Scanner in; static PrintWriter out; static String INPUT = ""; static int d(int x, int y) { out.println(x + " " + y); out.flush(); return ni(); } static void solve() { int d = 1000000000; int d00 = d(0, 0); if(d00 == 0)return; int d01 = d(0, d); if(d01 == 0)return; // a+b=D1 // a+c=D2 // b+c=10^6 int a = (d00+d01+d)/2-d; int b = (d00+d01+d)/2-d01; d(a, b); } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }