#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); int n; cin >> n; int ax, ay, bx, by, cx, cy; cin >> ax >> ay >> bx >> by >> cx >> cy; vector> ans; for (int di = -1; di <= 1; di += 2) { for (int dj = -1; dj <= 1; dj += 2) { int x = cx + di; int y = cy + dj; if (x >= 1 && x <= n && y >= 1 && y <= n) { ans.push_back({x, y}); } } } cout << ans.size() << '\n'; for (auto [x, y] : ans) { cout << x << ' ' << y << '\n'; } }