#include <bits/stdc++.h>
using pii = std::pair<int,int>;
const pii steps[] = {{-1,0},{1,0},{0,-1},{0,1}};
int main() {
int x = 2,y=2;
for (auto [dx,dy] : steps) {
int newX = x + dx;
int newY = y + dy;
std::cout << newX << ' ' << newY << '\n';
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIHBpaSA9IHN0ZDo6cGFpcjxpbnQsaW50PjsKY29uc3QgcGlpIHN0ZXBzW10gPSB7ey0xLDB9LHsxLDB9LHswLC0xfSx7MCwxfX07CmludCBtYWluKCkgewoJaW50IHggPSAyLHk9MjsKCWZvciAoYXV0byBbZHgsZHldIDogc3RlcHMpIHsKCSAgICBpbnQgbmV3WCA9IHggKyBkeDsKCSAgICBpbnQgbmV3WSA9IHkgKyBkeTsKCSAgICBzdGQ6OmNvdXQgPDwgbmV3WCA8PCAnICcgPDwgbmV3WSA8PCAnXG4nOwoJfQp9Cg==