#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
int main() {
  int n = 500;
  printf("%d\n", n);
  printf("0 1000000\n");
  int x = 700000;
  int r = 500;
  for (int i = 0; i < int(n - 2); i++) {
    printf("%d %d\n", x, r);
    x += 2 * r;
    r--;
  }
  printf("1000000 1000000\n");
  return 0;
}
