import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); System.out.println(0 + " " + 0); int d1 = scan.nextInt(); System.out.println(0 + " " + d1); int d2 = scan.nextInt(); System.out.println(d2/2 + " " + (d1-d2/2)); } }