#include <bits/stdc++.h>   using namespace std;   int main() {     int t = 1;     while (t--) {       long long n;       cin >> n;       long long a[n];       for (int i = 0; i < n; i++) cin >> a[i];       if (n == 1) {         cout <<  1 1  << endl;         cout <<  0  << endl;         cout <<  1 1  << endl;         cout << 0 << endl;         cout <<  1 1  << endl;         cout << -a[0] << endl;       } else {         cout <<  1 1  << endl;         cout << -a[0] << endl;         cout <<  2               <<     << n << endl;         for (int i = 1; i < n; i++) {           cout << a[i] * (n - 1) <<    ;         }         cout << endl;         cout <<  1               <<     << n << endl;         cout <<  0  ;         for (int i = 1; i < n; i++) cout << -a[i] * n <<    ;       }     }   }   