import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x0 = 0; int y0 = 0; System.out.println(x0 + " " + y0); int d0 = scan.nextInt(); if(d0 == 0) { System.exit(0); } System.out.println(d0 + " " + y0); int d1 = scan.nextInt(); int x1 = d1 / 2; int y1 = d0 - x1; System.out.println(y1 + " " + x1); scan.close(); System.exit(0); } }