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