#include <bits/stdc++.h>
using namespace std;
const int N = 1e5;
const long long M = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  long long a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] += N;
  }
  cout << n + 1 << "\n";
  cout << 1 << ' ' << n << ' ' << N << "\n";
  for (int i = 0; i < n; i++) {
    cout << 2 << ' ' << i + 1 << ' ' << a[i] - i << "\n";
  }
}
