#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 5000 + 7;
const long long MOD = 1e9 + 7;
int main() {
  printf("2000\n");
  for (int i = 1; i <= 1000; i++) {
    printf("%d 1 %d 2\n", i, i);
  }
  for (int i = 1000; i >= 1; i--) {
    printf("%d 1 %d 2\n", i, i);
  }
}
