#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 9;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long m, k, p, d, n;
  vector<int> x;
  vector<int> y;
  for (int i = 0; i < 3; ++i) {
    int g, h;
    cin >> g >> h;
    x.push_back(g);
    y.push_back(h);
  }
  pair<long long, int> ind;
  long long kol = inf;
  for (int i = 0; i <= 1000; ++i)
    for (int j = 0; j <= 1000; ++j) {
      long long ans = 0;
      for (int l = 0; l < 3; ++l) ans += abs(i - x[l]) + abs(j - y[l]);
      if (ans < kol) {
        kol = ans;
        ind = {i, j};
      }
    }
  cout << kol + 1 << endl;
  set<pair<long long, int> > ans;
  for (int i = 0; i < 3; ++i) {
    for (int j = x[i]; j <= ind.first; ++j) ans.insert({j, y[i]});
    for (int j = x[i]; j >= ind.first; --j) ans.insert({j, y[i]});
    for (int j = y[i]; j <= ind.second; ++j) ans.insert({ind.first, j});
    for (int j = y[i]; j >= ind.second; --j) ans.insert({ind.first, j});
  }
  for (auto i : ans) cout << i.first << " " << i.second << endl;
}
