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