#include <bits/stdc++.h>
using namespace std;
int a[2005];
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int cur = 0;
  cout << n + 1 << endl;
  for (int i = n; i > 0; i--) {
    a[i] += cur;
    int temp = a[i] % (n + 1);
    cout << 1 << " " << i << " " << (n + 1 + i) - temp << endl;
    cur += (n + 1 + i) - temp;
  }
  cout << 2 << " " << n << " " << n + 1 << endl;
  return 0;
}
