#include <bits/stdc++.h>
using namespace std;
int mas[1005][1005];
int main() {
  long long kol = 0, k1, k2, xa, xb, xc, ya, yb, yc, i, j, n, m, x1, x2, y1, y2;
  cin >> xa >> ya >> xb >> yb >> xc >> yc;
  for (i = min(xa, xb); i <= max(xa, xb); i++) {
    for (j = min(ya, yb); j <= max(ya, yb); j++) {
      mas[i][j]++;
    }
  }
  for (i = min(xc, xb); i <= max(xc, xb); i++) {
    for (j = min(yc, yb); j <= max(yc, yb); j++) {
      mas[i][j]++;
    }
  }
  for (i = min(xa, xc); i <= max(xa, xc); i++) {
    for (j = min(ya, yc); j <= max(ya, yc); j++) {
      mas[i][j]++;
    }
  }
  for (i = 0; i <= 1000; i++) {
    for (j = 0; j <= 1000; j++) {
      if (mas[i][j] == 3) {
        k1 = i;
        k2 = j;
      }
      mas[i][j] = 0;
    }
  }
  x1 = min(xa, k1);
  y1 = min(ya, k2);
  x2 = max(xa, k1);
  y2 = max(ya, k2);
  if ((xa <= k1 && ya <= k2) || (xa >= k1 && ya >= k2)) {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x2][j] = 1;
    }
  } else {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x1][j] = 1;
    }
  }
  x1 = min(xb, k1);
  y1 = min(yb, k2);
  x2 = max(xb, k1);
  y2 = max(yb, k2);
  if ((xb <= k1 && yb <= k2) || (xb >= k1 && yb >= k2)) {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x2][j] = 1;
    }
  } else {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x1][j] = 1;
    }
  }
  x1 = min(xc, k1);
  y1 = min(yc, k2);
  x2 = max(xc, k1);
  y2 = max(yc, k2);
  if ((xc <= k1 && yc <= k2) || (xc >= k1 && yc >= k2)) {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x2][j] = 1;
    }
  } else {
    for (i = x1; i <= x2; i++) {
      mas[i][y1] = 1;
    }
    for (j = y1; j <= y2; j++) {
      mas[x1][j] = 1;
    }
  }
  kol = 0;
  for (i = 0; i <= 1000; i++) {
    for (j = 0; j <= 1000; j++) {
      if (mas[i][j] == 1) {
        kol++;
      }
    }
  }
  cout << kol << endl;
  for (i = 0; i <= 1000; i++) {
    for (j = 0; j <= 1000; j++) {
      if (mas[i][j] == 1) {
        cout << i << " " << j << endl;
      }
    }
  }
  return 0;
}
