#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 10;
long long arr[N];
long long max(long long a, long long b) { return (a > b) ? a : b; }
int32_t main() {
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    if (n == 1) {
      cout << "1 1" << endl
           << "0" << endl
           << "1 1" << endl
           << "0" << endl
           << "1 1" << endl
           << (-arr[0]);
    } else {
      cout << "1 1" << endl;
      cout << (-arr[0]) << endl;
      cout << "1 " << n << endl;
      cout << "0 "
           << " ";
      for (long long i = 1; i < n; i++) {
        cout << (n * (-arr[i])) << " ";
      }
      cout << endl;
      cout << "2 " << n << endl;
      for (long long i = 1; i < n; i++) {
        cout << ((n - 1) * (arr[i])) << " ";
      }
    }
  }
}
