#include <bits/stdc++.h>
using namespace std;
int n, p[501], x[501];
int main() {
  n = 311;
  x[0] = 0;
  p[0] = 500000;
  x[1] = 100000;
  p[1] = 500;
  for (int i = 2; i < 310; i++) {
    p[i] = p[i - 1] - 1;
    x[i] = x[i - 1] + p[i] + p[i - 1];
  }
  x[310] = 1000000;
  p[310] = 1000000;
  printf("%d\n", n);
  for (int i = 0; i < n; i++) printf("%d %d\n", x[i], p[i]);
  return 0;
}
