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(); long R = sc.nextLong(); if(R == 0) System.exit(0); System.out.println(R + " " + 0); System.out.flush(); long a = sc.nextLong(); if(a == 0) System.exit(0); System.out.println((R - a / 2) + " " + (a / 2)); System.out.flush(); long b = sc.nextLong(); System.exit(0); } }