#include <bits/stdc++.h>
using namespace std;
long long n;
long long a[10002];
int32_t main() {
  cin >> n;
  cout << n + 1 << '\n';
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] += 10 * n + 1;
  }
  cout << 1 << " " << n << " " << 10 * n + 1 << '\n';
  for (long long i = 1; i <= n; i++) {
    cout << 2 << " " << i << " " << a[i] - i + 1 << '\n';
  }
  return 0;
}
