#include <bits/stdc++.h>
using namespace std;
void add(int x1, int y1, int x2, int y2, vector<pair<int, int>>& cut) {
  if (x1 < x2) {
    for (int i = x1; i < x2; i++) cut.push_back({i, y1});
  } else {
    for (int i = x1; i > x2; i--) cut.push_back({i, y1});
  }
  if (y1 < y2) {
    for (int i = y1; i < y2; i++) cut.push_back({x2, i});
  } else {
    for (int i = y1; i > y2; i--) cut.push_back({x2, i});
  }
}
int main() {
  int x1, y1, x2, y2, x3, y3, ans = 100000, a = 0, b = 0;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  for (int x = 0; x < 1001; x++) {
    for (int y = 0; y < 1001; y++) {
      int d = abs(x1 - x) + abs(x2 - x) + abs(x3 - x) + abs(y1 - y) +
              abs(y2 - y) + abs(y3 - y) - 2;
      if (d < ans) {
        ans = d;
        a = x;
        b = y;
      }
    }
  }
  vector<pair<int, int>> cut;
  add(x1, y1, a, b, cut);
  add(x2, y2, a, b, cut);
  add(x3, y3, a, b, cut);
  cout << ans + 3 << "\n";
  cut.push_back({a, b});
  for (int i = 0; i < cut.size(); i++) {
    cout << cut[i].first << " " << cut[i].second << "\n";
  }
}
