#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, ara[100005], i;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> ara[i];
  }
  if (n > 1) {
    cout << 2 << ' ' << n << endl;
    for (i = 1; i < n; i++) {
      cout << ara[i] * (n - 1) << ' ';
    }
    cout << endl;
    cout << 1 << ' ' << n << endl;
    for (i = 0; i < n; i++) {
      cout << -ara[i] * n << ' ';
    }
    cout << endl;
    cout << 1 << ' ' << 1 << endl;
    cout << ara[0] * (n - 1) << endl;
  } else {
    cout << 1 << ' ' << 1 << endl;
    cout << -ara[0] << endl;
    cout << 1 << ' ' << 1 << endl;
    cout << 0 << endl;
    cout << 1 << ' ' << 1 << endl;
    cout << 0 << endl;
  }
  return 0;
}
