#include <bits/stdc++.h>
using namespace std;
int f(int x, int p2, int p) { return 2 * sqrt(p2 * p) + x + 1; }
int main() {
  printf("302\n");
  printf("0 1000000\n");
  int a = f(0, 1000000, 300);
  printf("%d 300\n", a);
  int kol = 2;
  for (int i = 299; i >= 1; --i) {
    printf("%d %d\n", f(a, i + 1, i), i);
    a = f(a, i + 1, i);
    kol++;
  }
  printf("%d 1000000\n", f(a, 1000000, 1));
  kol++;
  return 0;
}
