#include <bits/stdc++.h>
using namespace std;
void FastIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(15);
}
long long modpow(long long a, long long p, long long mod) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a) % mod;
    a = (a * a) % mod;
    p /= 2;
  }
  return ret % mod;
}
long long power(long long a, long long p) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a);
    a = (a * a);
    p /= 2;
  }
  return ret;
}
int main() {
  FastIO();
  cout << 2000 << '\n';
  for (int i = 1; i < 1001; i++)
    cout << i << " " << 1 << " " << i << " " << 2 << '\n';
  for (int i = 1000; i >= 1; i--)
    cout << i << " " << 1 << " " << i << " " << 2 << '\n';
  return 0;
}
