#include <bits/stdc++.h>
using namespace std;
const long long p = 1e9 + 7;
int main() {
  cout << "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);
}
