func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e5 + 5;   void run() {     int n;     cin >> n;     vector<long long> a(n);     for (int i = 0; i < n; i++) {       cin >> a[i];     }     if (n == 1) {       cout << 1 <<     << 1 <<   n  << -a[0] <<   n ;       cout << 1 <<     << 1 <<   n  << 0 <<   n ;       cout << 1 <<     << 1 <<   n  << 0 <<   n ;       return;     }     cout << 1 <<     << n - 1 <<   n ;     for (int i = 0; i < n - 1; i++) {       int x = a[i] % n;       a[i] += 1ll * x * (n - 1);       if (i) cout <<    ;       cout << 1ll * x * (n - 1);     }     cout <<   n ;     cout << 2 <<     << n <<   n ;     for (int i = 1; i < n; i++) {       int x = a[i] % n;       a[i] += 1ll * x * (n - 1);       if (i > 1) cout <<    ;       cout << 1ll * x * (n - 1);     }     cout <<   n ;     cout << 1 <<     << n <<   n ;     for (int i = 0; i < n; i++) {       if (i) cout <<    ;       cout << -a[i];     }     cout <<   n ;   }   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     cout << fixed << setprecision(20);     run();     return 0;   }   