#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int n = 1000;
int main() {
  printf("2000\n");
  for (int x = 1; x <= n; x++) {
    printf("%d %d %d %d\n", x, 1, x, 2);
  }
  for (int x = n; x >= 1; x--) {
    printf("%d %d %d %d\n", x, 1, x, 2);
  }
  return 0;
}
