#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int inf = 1e9;
int mod = 1e9 + 7;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << "1998\n";
  for (int i = 2; i <= 1000; i++) {
    cout << i << " "
         << "1 " << i << " "
         << "2\n";
  }
  for (int i = 2; i <= 1000; i++) {
    cout << i << " "
         << "1 " << i << " "
         << "2\n";
  }
  return 0;
}
