#include <iostream>
using namespace std;
int main() {
int a, b = 0;
cin >> a;
while (a >= 0) {
cout << a << " " << b << "\n";
a-=4; b+=4;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewoJaW50IGEsIGIgPSAwOwoJY2luID4+IGE7Cgl3aGlsZSAoYSA+PSAwKSB7CgkJY291dCA8PCBhIDw8ICIgIiA8PCBiIDw8ICJcbiI7CgkJYS09NDsgYis9NDsKCX0KCXJldHVybiAwOwp9