#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; int dx[] = {-1, 1, 0, 0}; int dy[] = {0, 0, -1, 1}; for (int d = 0; d < 4; d++) { int x = cx + dx[d]; int y = cy + dy[d]; 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'; } }