#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int cont[2005];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> cont[i];
  }
  cout << n + 1 << endl;
  cout << 1 << ' ' << n << ' ' << 200000 << endl;
  for (int i = 0; i < n; i++) {
    cont[i] += 200000;
  }
  for (int i = 0; i < n; i++) {
    cout << 2 << ' ' << i + 1 << ' ' << cont[i] - i - 1 << endl;
  }
}
