#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  long long t[n];
  for (long long i = 0; i < n; i++) cin >> t[i];
  cout << n + 1 << endl;
  long long x;
  for (int j = n - 1; j >= 0; j--) {
    if (t[j] % n > j)
      x = (n - (t[j] % n)) + j;
    else
      x = j - (t[j] % n);
    cout << 1 << " " << j + 1 << " " << x << endl;
    for (long long i = 0; i < j + 1; i++) t[i] += x;
  }
  cout << 2 << " " << n << " " << n << endl;
  return 0;
}
