#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int n;
long long a[maxn];
int main() {
  cin.tie(0), cout.tie(0), ios::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> a[i];
  if (n == 1) {
    cout << "1 1" << endl;
    cout << 1 << endl;
    cout << "1 1" << endl;
    cout << -1 << endl;
    cout << "1 1" << endl;
    cout << -a[1] << endl;
  } else {
    cout << "1 1" << endl;
    cout << -a[1] << endl;
    a[1] = 0;
    cout << "2 " << n << endl;
    for (int i = 2; i <= n; ++i) cout << (n - 1) * a[i] << (" \n"[i == n]);
    cout << "1 " << n << endl;
    for (int i = 1; i <= n; ++i) cout << -n * a[i] << (" \n"[i == n]);
  }
  return 0;
}
