#include <bits/stdc++.h>
using namespace std;
const char nl = '\n';
int main() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << "1 1" << nl;
    cout << 0 << nl;
    cout << "1 1" << nl;
    cout << 0 << nl;
    cout << "1 1" << nl;
    cout << -a[0] << nl;
  } else {
    cout << 1 << " " << n << nl;
    for (long long i = 0; i < n; i++) {
      cout << (a[i] * n) * (-1) << " ";
    }
    cout << nl;
    cout << 1 << " " << (n - 1) << nl;
    for (long long i = 0; i < n - 1; i++) {
      cout << (a[i] * (n - 1)) << " ";
    }
    cout << nl;
    cout << n << " " << n << nl;
    cout << (a[n - 1] * (n - 1)) << nl;
  }
}
