#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 7;
long long a[N];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << "1 1\n"
         << "0\n"
         << "1 1\n"
         << "0\n"
         << "1 1\n"
         << -a[1] << endl;
    return 0;
  }
  cout << n << " " << n << endl;
  cout << -a[n] << endl;
  cout << 1 << " " << n - 1 << endl;
  for (int i = 1; i < n; i++) {
    long long tmp = a[i] * (n - 1);
    a[i] += tmp;
    cout << tmp << " ";
  }
  cout << endl;
  cout << 1 << " " << n << endl;
  for (int i = 1; i < n; i++) {
    cout << -a[i] << " ";
  }
  cout << 0 << endl;
}
