#include <bits/stdc++.h>
using namespace std;
int main() {
  const int n = 3, N = 1000;
  int x[n], y[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  int res = int(1e9), rx = -1, ry = -1;
  for (int i = 0; i <= N; i++) {
    for (int j = 0; j <= N; j++) {
      int d = 0;
      for (int k = 0; k < n; k++) {
        d += abs(i - x[k]) + abs(j - y[k]);
      }
      if (d < res) {
        res = d;
        rx = i;
        ry = j;
      }
    }
  }
  cout << res + 1 << '\n';
  cout << rx << ' ' << ry << '\n';
  auto print = [&](int x, int y, int a, int b) {
    while (x != a) {
      if (x < a) {
        x++;
      } else {
        x--;
      }
      cout << x << ' ' << y << '\n';
    }
    while (y != b) {
      if (y < b) {
        y++;
      } else {
        y--;
      }
      cout << x << ' ' << y << '\n';
    }
  };
  for (int i = 0; i < n; i++) {
    print(rx, ry, x[i], y[i]);
  }
  return 0;
}
