#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout << "2001\n";
  for (int i = 1; i <= 1000; i++) {
    cout << i << " 1 " << i << " 2\n";
  }
  cout << "1 1 1 2\n";
  for (int i = 1; i <= 1000; i++) {
    cout << i << " 1 " << i << " 2\n";
  }
  return 0;
}
