#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  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";
}
