#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> ele(n);
  for (long long int j = 0; j < n; j++) {
    cin >> ele[j];
  }
  if (n == 1) {
    cout << "1 1"
         << "\n";
    long long int to_print = -1 * ele[0];
    cout << to_print << "\n";
    cout << "1 1"
         << "\n";
    cout << "0"
         << "\n";
    cout << "1 1"
         << "\n";
    cout << "0"
         << "\n";
    return 0;
  }
  vector<long long int> remainders(n);
  for (long long int j = 0; j < n; j++) {
    remainders[j] = ele[j] % n;
  }
  cout << "1 " << n - 1 << "\n";
  for (long long int j = 0; j < n - 1; j++) {
    long long int to_print = (n - 1) * remainders[j];
    ele[j] += to_print;
    cout << to_print << " ";
  }
  cout << "\n";
  cout << "2 " << n << "\n";
  for (long long int j = 1; j <= n - 2; j++) {
    cout << "0 ";
  }
  long long int to_print = (n - 1) * remainders[n - 1];
  ele[n - 1] += to_print;
  cout << to_print << "\n";
  cout << "1 " << n << "\n";
  for (long long int j = 0; j < n; j++) {
    to_print = -1 * ele[j];
    cout << to_print << " ";
  }
  return 0;
}
