#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
long long int paw(long long int a, long long int b);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, i, temp, j;
  long long arr[2123];
  cin >> n;
  cout << n + 1 << endl;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (i = n - 1; i >= 0; i--) {
    temp = i + n - (arr[i]) % n;
    cout << 1 << ' ' << i + 1 << ' ' << temp << endl;
    for (j = 0; j < i + 1; j++) {
      arr[j] += temp;
    }
  }
  cout << 2 << ' ' << n << ' ' << n << endl;
  return 0;
}
long long int paw(long long int a, long long int b) {
  long long int x = ((a) % 1000000007), ans = 1;
  while (b > 0) {
    if (b & 1) ans = (ans * x) % 1000000007;
    x = (x * x) % 1000000007;
    b >>= 1;
  }
  return ans;
}
