#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 1e5 + 5;
const int mod = 1e9 + 7;
int t, n, m, k;
long long a[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> a[i];
  cout << "1 1" << endl;
  cout << -a[1] % n << endl;
  a[1] -= a[1] % n;
  if (n >= 2) {
    cout << "2 " << n << endl;
    for (int i = 2; i <= n; ++i) {
      long long p = a[i] % n;
      cout << p * (n - 1) << ' ';
      a[i] += p * (n - 1);
    }
  } else {
    cout << "1 1" << endl;
    cout << 0 << endl;
  }
  cout << endl << "1 " << n << endl;
  for (int i = 1; i <= n; ++i) cout << -a[i] << ' ';
  cout << endl;
  return 0;
}
