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(); System.out.println(0 + " " + 100000); System.out.flush(); int ret2 = sc.nextInt(); int x = (ret1 + ret2 - 100000) / 2; int y = ret1 - x; System.out.println(x + " " + y); System.out.flush(); } }