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