#include <bits/stdc++.h>
using namespace std;
long long n, k, ar[100004];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
  }
  cout << n + 1 << endl;
  cout << "1 " << n << " 100000" << endl;
  for (int i = 0; i < n; i++) {
    cout << "2 " << i + 1 << " " << (ar[i] + 100000 - i) << endl;
  }
  return 0;
}
