import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } void run() { FastScanner sc=new FastScanner(); PrintWriter pw=new PrintWriter(System.out); int A=sc.nextInt(); int B=sc.nextInt(); int C=sc.nextInt(); int D=sc.nextInt(); if (A==C&&B==C) { int N=C; int M=C; if (D0) { pw.println(0+" "+p); pw.println(1+" "+p); int ab=p++; for (int i=0;i