#include <bits/stdc++.h>
const int INF = 2147483647;
const int MOD = 1000000007;
const long long INF64 = 9223372036854775807;
using namespace std;
int main() {
  cout << "2000\n";
  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;
}
