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