/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
int m = in.nextInt();
int x = in.nextInt();
int y = in.nextInt();
if (x
> 1) System.
out.
print((x
-1)+" "+y
+"\n");//cout << x - 1 << " " << y << endl; if (x
< n
) System.
out.
print((x
+1)+" "+y
+"\n");//cout << x + 1 << " " << y << endl; if (y
> 1) System.
out.
print(x
+" "+(y
-1)+"\n");//cout << x << " " << y - 1 << endl; if (y
< m
) System.
out.
print(x
+" "+(y
+1)+"\n");//cout << x << " " << y + 1 << endl; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCQoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludCBuID0gaW4ubmV4dEludCgpOwogICAgICAgIGludCBtID0gaW4ubmV4dEludCgpOwogICAgICAgIGludCB4ID0gaW4ubmV4dEludCgpOwogICAgICAgIGludCB5ID0gaW4ubmV4dEludCgpOwoJCWlmICh4ID4gMSkgU3lzdGVtLm91dC5wcmludCgoeC0xKSsiICIreSsiXG4iKTsvL2NvdXQgPDwgeCAtIDEgPDwgIiAiIDw8IHkgPDwgZW5kbDsKICAgIAlpZiAoeCA8IG4pIFN5c3RlbS5vdXQucHJpbnQoK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