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