#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10;
long long a[MAXN];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%I64d", &a[i]);
  printf("%d\n", n + 1);
  for (int i = n; i >= 1; i--) {
    int w = 100000 - a[i] % 100000 + i - 1;
    printf("1 %d %d\n", i, w);
    for (int j = 1; j <= i; j++) {
      a[j] += w;
    }
  }
  printf("2 %d %d\n", n, 100000);
  return 0;
}
