#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

int main() {
  int n, ax, ay, bx, by, cx, cy;
  cin >> n >> ax >> ay >> bx >> by >> cx >> cy;
  cout << 4 << endl;
  cout << cx - 1 << ' ' << cy << endl;
  cout << cx << ' ' << cy - 1 << endl;
  cout << cx + 1 << ' ' << cy << endl;
  cout << cx << ' ' << cy + 1 << endl;
  return 0;
}