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