import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; public class Main { public static int RANGE = 100; public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(0 + " " + 0); final int orig_dist = sc.nextInt(); if(orig_dist == 0){ return; } System.out.println(orig_dist + " " + 0); final int diff = sc.nextInt(); if(diff == 0){ return; } final int x = orig_dist - diff / 2; System.out.println(x + " " + 0); final int y = sc.nextInt(); System.out.println(x + " " + y); } }