func_code_string: #include <bits/stdc++.h>   using namespace std;   vector<long long> foo;   long long add = 0;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     int n;     cin >> n;     for (int i = 0; i < n; i++) {       int k;       cin >> k;       foo.push_back(k);     }     cout << n + 1 <<   n ;     for (int i = foo.size() - 1; i >= 0; i--) {       foo[i] += add;       foo[i] %= n;       int q = i - foo[i] + n;       add += q;       cout << 1 <<     << i + 1 <<     << q <<   n ;     }     cout << 2 <<     << n <<     << n;     return 0;   }   