#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[3], y[3];
  for (int i = 0; i < 3; i++) cin >> x[i] >> y[i];
  int ans = 0x3f3f3f3f;
  int bestx = -1, besty = -1;
  for (int x0 = 0; x0 <= 1000; x0++)
    for (int y0 = 0; y0 <= 1000; y0++) {
      int cur = 0;
      for (int i = 0; i < 3; i++) cur += abs(x0 - x[i]) + abs(y0 - y[i]);
      if (cur < ans) {
        ans = cur;
        bestx = x0;
        besty = y0;
      }
    }
  cout << ans + 1 << endl;
  cout << bestx << " " << besty << endl;
  for (int i = 0; i < 3; i++) {
    int curx = x[i], cury = y[i];
    while (curx != bestx) {
      cout << curx << " " << cury << endl;
      curx -= (curx - bestx) / abs(curx - bestx);
    }
    while (cury != besty) {
      cout << curx << " " << cury << endl;
      cury -= (cury - besty) / abs(cury - besty);
    }
  }
}
