#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 10;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  int x[4], y[4];
  for (int i = 1; i <= 3; i++) {
    cin >> x[i] >> y[i];
  }
  pair<int, pair<int, int> > e = make_pair(INF, make_pair(INF, INF));
  for (int i = 0; i <= 1000; i++) {
    for (int j = 0; j <= 1000; j++) {
      int w = 0;
      for (int u = 1; u <= 3; u++) {
        w += abs(x[u] - i) + abs(y[u] - j) + 1;
      }
      e = min(e, make_pair(w - 2, make_pair(i, j)));
    }
  }
  cout << e.first << endl;
  for (int i = 1; i <= 3; i++) {
    if (x[i] == e.second.first && y[i] == e.second.second) {
      continue;
    }
    cout << x[i] << " " << y[i] << endl;
    while (x[i] > e.second.first) {
      x[i]--;
      if (x[i] == e.second.first && y[i] == e.second.second) {
        break;
      }
      cout << x[i] << " " << y[i] << endl;
    }
    while (x[i] < e.second.first) {
      x[i]++;
      if (x[i] == e.second.first && y[i] == e.second.second) {
        break;
      }
      cout << x[i] << " " << y[i] << endl;
    }
    while (y[i] > e.second.second) {
      y[i]--;
      if (x[i] == e.second.first && y[i] == e.second.second) {
        break;
      }
      cout << x[i] << " " << y[i] << endl;
    }
    while (y[i] < e.second.second) {
      y[i]++;
      if (x[i] == e.second.first && y[i] == e.second.second) {
        break;
      }
      cout << x[i] << " " << y[i] << endl;
    }
  }
  cout << e.second.first << " " << e.second.second;
}
