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