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