#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 55;
int x[2 * MAX];
vector<pair<pair<int, int>, int>> v;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i];
  v.push_back({{2, n}, 1});
  v.push_back({{1, n}, 100000});
  for (int i = 0; i < n - 1; i++) v.push_back({{2, i + 1}, 100000 - (i + 1)});
  cout << n + 1 << endl;
  for (auto i : v)
    cout << i.first.first << " " << i.first.second << " " << i.second << endl;
  return 0;
}
