#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1E5 + 5;
const int MOD = 1E9 + 7;
long long n, a[MAXN];
template <class T>
void read(T& x, T f = 1, char ch = getchar()) {
  x = 0;
  while (ch < '0' || ch > '9') f = (ch == '-' ? -1 : 1), ch = getchar();
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - 48, ch = getchar();
  x *= f;
}
signed main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << -a[1] << endl;
    return 0;
  }
  cout << 1 << " " << n - 1 << endl;
  for (int i = 1; i < n; i++) {
    cout << a[i] * (n - 1) << " ";
    a[i] += a[i] * (n - 1);
  }
  cout << endl;
  cout << n << " " << n << endl;
  for (int i = 0; i <= n; i++)
    if ((a[n] + i) % n == 0) {
      cout << i << " ";
      a[n] += i;
      break;
    }
  cout << endl;
  cout << 1 << " " << n << endl;
  for (int i = 1; i <= n; i++) cout << -a[i] << " ";
  return 0;
}
