#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int x = n * 10;
  cout << n + 1 << "\n";
  cout << 2 << ' ' << n << ' ' << 1 << "\n";
  cout << 1 << ' ' << n << ' ' << x << "\n";
  x--;
  for (int i = 0; i < n - 1; ++i) {
    cout << 2 << ' ' << (i + 1) << ' ' << x-- << "\n";
  }
  return 0;
}
