import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(0 + " " + 0); System.out.flush(); int ret1 = sc.nextInt(); if(ret1 == 0) System.exit(0); System.out.println(0 + " " + 100000); System.out.flush(); int ret2 = sc.nextInt(); if(ret2 == 0) System.exit(0); int x = (ret1 + ret2 - 100000) / 2; int y = ret1 - x; System.out.println(x + " " + y); System.out.flush(); } }