#include <bits/stdc++.h>
using namespace std;
const double pi = acos(0.0) * 2.;
const int N = 2e3;
const int pr = 999983;
int a[N + 1];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  cout << n + 1 << endl;
  cout << "2 " << n << " 1" << endl;
  cout << "1 " << n << " 999983" << endl;
  for (int i = 1; i <= n - 1; i++) {
    cout << "2 " << i << " " << pr - i << endl;
  }
}
