#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;


int main(){
  int n = 10000;
  cout << n << endl;
  for (unsigned i = 0; i <= 250; ++i){
    cout << i << ' ' << 0 << endl;
    cout << i << ' ' << 1 << endl;
    cout << i << ' ' << i << endl;
    cout << 0 << ' ' << i << endl;
    cout << 1 << ' ' << i << endl;
    if (i > 0){
      cout << i << ' ' << i-1 << endl;
      cout << i-1 << ' ' << i << endl;
      --n; --n;
    }
    n-=5;
  }
  
  while (n--){
    cout << rand()%251 << ' ' << rand()%251 << endl;
  }
}
