#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 500, x = 400000, r = n;
  printf("%d\n", n);
  printf("0 500000\n");
  for (int i = 0; i < n - 2; i++) {
    printf("%d %d\n", x, r--);
    x += 2 * n;
  }
  printf("999900 500000\n");
  return 0;
}
