#include <bits/stdc++.h>
using namespace std;
int main() {
  long long nOdd;
  int n;
  cin >> n;
  long long arr[n];
  cin >> arr[0];
  cout << "1 1\n" << (arr[0] == 0 ? 0 : -arr[0]) << endl;
  arr[0] = 0;
  if (n > 1) {
    if (n % 2 == 0)
      cout << 2 << " " << n << endl;
    else
      cout << 1 << " " << n << endl << 0 << " ";
  } else {
    cout << "1 1\n0\n1 1\n0\n";
    return 0;
  }
  nOdd = n % 2 != 0 ? n : n - 1;
  for (int i = 1; i < n; i++) {
    cin >> arr[i];
    if (n % 2 == 0) {
      cout << nOdd * arr[i] << " ";
      arr[i] += nOdd * arr[i];
    } else {
      cout << nOdd * -arr[i] << " ";
      arr[i] += nOdd * -arr[i];
    }
  }
  cout << endl;
  if (n % 2 == 0)
    cout << 1 << " " << n << endl << (arr[0] == 0 ? 0 : -arr[0]) << " ";
  else
    cout << 2 << " " << n << endl;
  for (int i = 1; i < n; i++) {
    cout << (arr[i] == 0 ? 0 : -arr[i]) << " ";
  }
  cout << endl;
  return 0;
}
