import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
int a, b = 0;
Scanner in
= new Scanner
(System.
in); a = in.nextInt();
while (a >= 0) {
System.
out.
println(a
+ " " + b
); a -= 4; b += 4;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludCBhLCBiID0gMDsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlhID0gaW4ubmV4dEludCgpOwoJCXdoaWxlIChhID49IDApIHsKCQkJU3lzdGVtLm91dC5wcmludGxuKGEgKyAiICIgKyBiKTsKCQkJYSAtPSA0OyBiICs9IDQ7CgkJfQoJfQp9