#include <bits/stdc++.h>
using namespace std;
const int MXN = (int)3e5 + 7;
const int MOD = (int)1e9 + 7;
const int N = 18;
const double EPS = (double)1e-9;
const long long INF = (long long)2e18 + 7;
long long n, a[MXN];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << 1 << ' ' << 1 << ' ' << '\n' << -a[n] << '\n';
    cout << 1 << ' ' << 1 << ' ' << '\n' << 0 << '\n';
    cout << 1 << ' ' << 1 << ' ' << '\n' << 0 << '\n';
    return 0;
  }
  cout << n << ' ' << n << '\n' << -a[n] << '\n';
  cout << 1 << ' ' << n << '\n';
  for (int i = 1; i < n; i++) {
    cout << ((n - 1) - (a[i] % (n - 1))) * n << ' ';
    a[i] += ((n - 1) - (a[i] % (n - 1))) * n;
  }
  cout << 0;
  cout << '\n' << 1 << ' ' << n - 1 << '\n';
  for (int i = 1; i < n; i++) {
    cout << -a[i] << ' ';
  }
  return 0;
}
