#include <bits/stdc++.h>
using namespace std;
long long a[1000005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << "1 1" << endl
         << -a[0] << endl
         << "1 1" << endl
         << 0 << endl
         << "1 1" << endl
         << 0;
  } else {
    cout << "1 " << n - 1 << endl;
    for (long long i = 1; i <= n - 1; i++) {
      cout << (n - 1) * a[i - 1] << " ";
    }
    cout << endl;
    cout << n << " " << n << endl << -a[n - 1] << endl;
    cout << 1 << " " << n << endl;
    for (long long i = 1; i <= n - 1; i++) cout << -a[i - 1] * n << " ";
    cout << 0;
  }
  return 0;
}
