#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  set<int> xs, ys;
  vector<pair<int, int>> all;
  for (int i = 0; i < 3; i++) {
    int x, y;
    cin >> x >> y;
    all.emplace_back(x, y);
    xs.insert(x);
    ys.insert(y);
  }
  set<pair<int, int>> best;
  for (int xc : xs) {
    for (int yc : ys) {
      set<pair<int, int>> cur;
      for (auto pr : all) {
        int xp = pr.first, yp = pr.second;
        for (int x = min(xc, xp); x <= max(xc, xp); x++) {
          cur.insert({x, yp});
        }
        for (int y = min(yc, yp); y <= max(yc, yp); y++) {
          cur.insert({xc, y});
        }
      }
      if (best.size() == 0 || cur.size() < best.size()) {
        best = cur;
      }
    }
  }
  cout << best.size() << "\n";
  for (auto pr : best) {
    cout << pr.first << " " << pr.second << "\n";
  }
}
