#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int num;
  for (int i = 0; i < n; i++) {
    cin >> num;
    v.push_back(num);
  }
  if (n != 1) {
    cout << "1 1"
         << "\n";
    cout << to_string(-1 * v[0]) << "\n";
    v[0] = 0;
    cout << "1 " + to_string(n) << "\n";
    for (int i = 0; i < n; i++) {
      if (i != n - 1)
        cout << to_string(-1 * n * v[i]) << " ";
      else
        cout << to_string(-1 * n * v[i]) << "\n";
    }
    cout << "2 " + to_string(n) << "\n";
    for (int i = 1; i < n; i++) {
      if (i != n - 1)
        cout << to_string((n - 1) * v[i]) << " ";
      else
        cout << to_string((n - 1) * v[i]) << "\n";
    }
  } else {
    cout << to_string(1) + " " + to_string(1) << "\n";
    cout << -1 * v[0] << "\n";
    cout << to_string(1) + " " + to_string(1) << "\n";
    cout << 0 << "\n";
    cout << to_string(1) + " " + to_string(1) << "\n";
    cout << 0 << "\n";
  }
  return 0;
}
