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