#include <iostream>
using namespace std;
int main(){
    int k;
    int m[10][10];
    cin >> k;
    cout << 5 << endl;
    cout << 0 << " " << 2 << endl;
    cout << 0 << " " << 1 << endl;
    cout << 0 << " " << 0 << endl;
    cout << 1 << " " << 0 << endl;
    cout << 2 << " " << 0 << endl;
}