#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<long long> a(n);
  for (auto& x : a) cin >> x;
  if (n >= 3) {
    cout << 1 << " " << 1 << endl;
    cout << -a[0] << endl;
    cout << 1 << " " << n << endl;
    a[0] = 0;
    int m = n;
    for (int i = 0; i < n; i++) {
      if (i > 0) cout << " ";
      cout << -1LL * m * a[i];
      a[i] -= 1LL * m * a[i];
    }
    cout << endl;
    m = n - 1;
    cout << 2 << " " << n << endl;
    for (int i = 1; i < n; i++) {
      if (i > 1) cout << " ";
      assert(a[i] % m == 0);
      cout << -1LL * a[i];
    }
    cout << endl;
  } else if (n == 2) {
    cout << 1 << " " << 1 << endl;
    cout << -a[0] << endl;
    cout << 2 << " " << 2 << endl;
    cout << 1 << endl;
    a[1]++;
    cout << 2 << " " << 2 << endl;
    cout << -a[1] << endl;
  } else if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << -a[0] << endl;
    cout << 1 << " " << 1 << endl;
    cout << 1 << endl;
    cout << 1 << " " << 1 << endl;
    cout << -1 << endl;
  }
  return 0;
}
