#include <bits/stdc++.h>
const double PI = acos(-1);
long long A[100001];
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> A[i];
  }
  if (n == 1) {
    cout << 1 << ' ' << 1 << '\n';
    cout << 100000000000 << '\n';
    cout << 1 << ' ' << 1 << '\n';
    cout << 0 << '\n';
    cout << 1 << ' ' << 1 << '\n';
    cout << -(A[1] + 100000000000) << '\n';
  } else {
    cout << 1 << ' ' << n << '\n';
    for (int i = 1; i <= n; i++) {
      cout << -A[i] * n << ' ';
    }
    cout << '\n' << 1 << ' ' << n - 1 << '\n';
    for (int i = 1; i <= n - 1; i++) cout << A[i] * (n - 1) << ' ';
    cout << '\n' << n << ' ' << n << '\n';
    cout << A[n] * (n - 1);
  }
}
