#include <bits/stdc++.h>
using namespace std;
const int N = 9e5 + 7;
const long long INF = 1e9 + 7;
int main() {
  cout << 2000 << endl;
  for (int i = 1; i <= 1000; i++) cout << i << " 1 " << i << " 2\n";
  for (int i = 1000; i >= 1; i--) cout << i << " 1 " << i << " 2\n";
  return 0;
}
