#include <bits/stdc++.h>
using namespace std;
void read(int &x) {
  x = 0;
  char c = getchar();
  bool ok = false;
  while ((c < '0' || c > '9') && c != '-') c = getchar();
  if (c == '-') c = getchar(), ok = true;
  while ('0' <= c & c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  if (ok) x = -x;
}
const int N = 100010;
int n, a[N], b[N];
int main() {
  read(n);
  for (int i = 1, c_ = n; i <= c_; ++i) read(a[i]);
  for (int i = 1, c_ = n; i <= c_; ++i) b[i] = a[i] + 100000;
  cout << n + 1 << "\n";
  cout << 1 << " "
       << " " << n << " " << 200000 << "\n";
  for (int i = 1, c_ = n; i <= c_; ++i)
    cout << 2 << " " << i << " " << 200000 + a[i] - i << "\n";
}
