#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(0);
  cin.tie(0);
  cin.exceptions(cin.failbit);
  int x[3], y[3];
  cin >> x[0] >> y[0];
  cin >> x[1] >> y[1];
  cin >> x[2] >> y[2];
  int ans = INT_MAX;
  pair<int, int> op;
  for (int i = 0; i <= 1000; i++) {
    for (int j = 0; j <= 1000; j++) {
      int t = 0;
      bool nt = false;
      for (int k = 0; k < 3; k++) {
        int d = abs(x[k] - i) + abs(y[k] - j);
        t += d;
      }
      t++;
      if (t < ans) {
        op = make_pair(i, j);
        ans = t;
      }
    }
  }
  cout << ans << endl;
  cout << op.first << " " << op.second << endl;
  for (int i = 0; i < 3; i++) {
    if (op.first < x[i]) {
      for (int ii = op.first + 1; ii <= x[i]; ii++) {
        cout << ii << " " << op.second << endl;
      }
    } else {
      for (int ii = op.first - 1; ii >= x[i]; ii--) {
        cout << ii << " " << op.second << endl;
      }
    }
    if (op.second < y[i]) {
      for (int jj = op.second + 1; jj <= y[i]; jj++) {
        cout << x[i] << " " << jj << endl;
      }
    } else {
      for (int jj = op.second - 1; jj >= y[i]; jj--) {
        cout << x[i] << " " << jj << endl;
      }
    }
  }
  return 0;
}
