#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    int ax, ay;
    cin >> ax >> ay;
    int bx, by;
    cin >> bx >> by;
    int cx, cy;
    cin >> cx >> cy;
    cout << 4 << endl;
    cout << cx - 1 << " " << cy << endl;
    cout << cx << " " << cy - 1 << endl;
    cout << cx + 1 << " " << cy << endl;
    cout << cx << " " << cy + 1 << endl;
}