#include <bits/stdc++.h>
static inline unsigned long long rdtsc() {
  unsigned long long d;
  __asm__ __volatile__("rdtsc" : "=A"(d));
  return d;
}
using namespace std;
const int inf = (int)1.01e9;
const double eps = 1e-9;
const int M = (int)1e9 + 7;
const int N = (int)3.22e5;
int main() {
  int n = 2001;
  printf("%d\n", n);
  for (int i = 1; i <= 1000; ++i) {
    printf("%d 1 %d 2\n", i, i);
  }
  printf("1 1 1 2\n");
  for (int i = 1; i <= 1000; ++i) {
    printf("%d 1 %d 2\n", i, i);
  }
  return 0;
}
