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