#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  pair<int, int> pr[20000];
  int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (x1 > x2) {
    swap(x1, x2);
    swap(y1, y2);
  }
  if (x2 > x3) {
    swap(x2, x3);
    swap(y2, y3);
  }
  if (x1 > x2) {
    swap(x1, x2);
    swap(y1, y2);
  }
  int cnt = 0;
  for (int i = min(y1, min(y2, y3)); i <= max(y1, max(y2, y3)); i++) {
    pr[cnt].first = x2;
    pr[cnt].second = i;
    cnt++;
  }
  if (x1 < x2) {
    for (int i = x1; i < x2; i++) {
      pr[cnt].first = i;
      pr[cnt].second = y1;
      cnt++;
    }
  } else {
    if (x1 > x2) {
      for (int i = x1; i > x2; i--) {
        pr[cnt].first = i;
        pr[cnt].second = y1;
        cnt++;
      }
    }
  }
  if (x3 < x2) {
    for (int i = x3; i < x2; i++) {
      pr[cnt].first = i;
      pr[cnt].second = y3;
      cnt++;
    }
  } else {
    if (x3 > x2) {
      for (int i = x3; i > x2; i--) {
        pr[cnt].first = i;
        pr[cnt].second = y3;
        cnt++;
      }
    }
  }
  cout << cnt << endl;
  for (int i = 0; i < cnt; i++)
    cout << pr[i].first << " " << pr[i].second << endl;
  return 0;
}
