#include <bits/stdc++.h>
using namespace std;
void scan(int &x) {
  register int c = getchar();
  x = 0;
  int neg = 0;
  for (; ((c < 48 || c > 57) && c != '-'); c = getchar())
    ;
  if (c == '-') {
    neg = 1;
    c = getchar();
  }
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
  if (neg) x = -x;
}
const int M = 1000;
int main() {
  int a = 1, b = 1, x = 1, y = 2;
  puts("2001");
  for (int i = 0; i < M; i++)
    cout << a++ << " " << b << " " << x++ << " " << y << "\n";
  a = 1, b = 1, x = 1, y = 2;
  cout << a << " " << b << " " << x << " " << y << "\n";
  for (int i = 0; i < M; i++)
    cout << a++ << " " << b << " " << x++ << " " << y << "\n";
  return 0;
}
