#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
long long int a[maxn];
int main() {
  int n;
  cin >> 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 << 1 << " " << n << endl;
    cout << 0 << " ";
    for (int i = 1; i < n; i++) {
      cout << -n * a[i] << " ";
    }
    cout << endl;
    cout << 2 << " " << n << endl;
    for (int i = 1; i < n; i++) {
      cout << (n - 1) * a[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
