#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > v;
vector<pair<int, int> > ans;
int main() {
  int x1, y1;
  int x2, y2;
  int x3, y3;
  cin >> x1 >> y1;
  cin >> x2 >> y2;
  cin >> x3 >> y3;
  v.push_back(make_pair(x1, y1));
  v.push_back(make_pair(x2, y2));
  v.push_back(make_pair(x3, y3));
  for (; v.size() > 1;) {
    for (int i = 0; i < v.size(); i++) {
      if (v.size() == 3) {
        int a = v[i].first, b = v[(i + 1) % v.size()].first,
            c = v[(i + 2) % v.size()].first;
        if (a < b && a < c) {
          ans.push_back(v[i]);
          v[i].first++;
          break;
        } else if (a > b && a > c) {
          ans.push_back(v[i]);
          v[i].first--;
          break;
        }
        a = v[i].second;
        b = v[(i + 1) % v.size()].second;
        c = v[(i + 2) % v.size()].second;
        if (a < b && a < c) {
          ans.push_back(v[i]);
          v[i].second++;
          break;
        } else if (a > b && a > c) {
          ans.push_back(v[i]);
          v[i].second--;
          break;
        }
      } else {
        int a = v[i].first, b = v[(i + 1) % v.size()].first;
        if (a < b) {
          ans.push_back(v[i]);
          v[i].first++;
          break;
        } else if (a > b) {
          ans.push_back(v[i]);
          v[i].first--;
          break;
        }
        a = v[i].second;
        b = v[(i + 1) % v.size()].second;
        if (a < b) {
          ans.push_back(v[i]);
          v[i].second++;
          break;
        } else if (a > b) {
          ans.push_back(v[i]);
          v[i].second--;
          break;
        }
      }
    }
    for (int i = 0; i < 5; i++) {
      for (int a = 0; a < v.size(); a++) {
        for (int b = a + 1; b < v.size(); b++) {
          if (v[a] == v[b]) {
            swap(v[b], v[v.size() - 1]);
            v.pop_back();
          }
        }
      }
    }
  }
  ans.push_back(v[0]);
  cout << ans.size() << "\n";
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i].first << " " << ans[i].second << "\n";
  }
  return 0;
}
