#include <bits/stdc++.h>
using namespace ::std;
const long long maxn = 1e5 + 500;
const long long inf = 1e9 + 900;
long long a[maxn];
int main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << "1 1\n" << -a[0] << "\n 1 1\n 0 \n 1 1 \n 0";
    return 0;
  }
  cout << 1 << ' ' << n << endl;
  for (long long i = 0; i < n; i++) {
    long long v = n * (a[i] % (n - 1) + (n - 1));
    cout << -v << ' ';
    a[i] -= v;
  }
  cout << endl << 1 << ' ' << n - 1 << endl;
  for (long long i = 0; i < n - 1; i++) {
    cout << -a[i] << ' ';
  }
  cout << endl << 2 << ' ' << n << endl;
  for (long long i = 1; i < n - 1; i++) {
    cout << 0 << ' ';
  }
  cout << -a[n - 1];
}
