#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  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);
}
