#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) { return (!y ? x : gcd(y, x % y)); }
const long long maxn = 1e5 + 10;
long long a[maxn];
int32_t main() {
  ios::sync_with_stdio(0), cin.tie(0);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << " " << -a[0] << '\n';
    cout << 1 << " " << 1 << " " << 0 << '\n';
    cout << 1 << " " << 1 << " " << 0 << '\n';
    return 0;
  }
  cout << 1 << " " << n << '\n';
  for (long long i = 0; i < n; i++) {
    if (i != n - 1)
      cout << 1LL * -n * a[i] << " ";
    else
      cout << 0 << '\n';
  }
  cout << 1 << " " << n - 1 << '\n';
  for (long long i = 0; i < n - 1; i++) {
    cout << 1LL * (n - 1) * a[i] << " ";
  }
  cout << '\n';
  cout << n << " " << n << '\n';
  cout << -a[n - 1] << '\n';
}
