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