#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<long long int> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << -arr[0];
  } else {
    cout << 1 << " " << 1 << endl;
    cout << -arr[0] << endl;
    cout << 1 << " " << n << endl;
    cout << 0 << " ";
    for (int i = 1; i < n; i++) {
      cout << 1ll * -arr[i] * n << " ";
    }
    cout << endl;
    cout << 2 << " " << n << endl;
    for (int i = 1; i < n; i++) {
      cout << (1ll * arr[i] * (n - 1)) << " ";
    }
    cout << endl;
  }
}
int main() {
  int T = 1;
  while (T--) {
    solve();
  }
}
