#include <bits/stdc++.h>
const double eps = 1e-7, PI = 3.1415926;
const int N = 2e5 + 10;
using namespace std;
long long n, q, m, k, x, y, a[N], mx = -1, mn = 1e9, sum, t;
int main() {
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << endl << -1 * a[0] << endl;
    cout << 1 << " " << 1 << endl << 0 << endl;
    cout << 1 << " " << 1 << endl << 0 << endl;
    return 0;
  }
  cout << 1 << " " << 1 << endl;
  cout << -1 * a[0] << endl;
  a[0] = 0;
  cout << 2 << " " << n << endl;
  for (long long i = 1; i < n; i++) {
    cout << (a[i] % n) * (n - 1) << " ";
    a[i] += ((a[i] % n) * (n - 1));
  }
  cout << endl;
  cout << 1 << " " << n << endl;
  for (long long i = 0; i < n; i++) {
    cout << -1 * a[i] << " ";
  }
  return 0;
}
