#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
const int MAX = 1e4 + 7;
const int mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> a(n, 0);
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << "\n";
    cout << -a[0] << "\n";
    cout << 1 << " " << 1 << "\n";
    cout << 0 << "\n";
    cout << 1 << " " << 1 << "\n";
    cout << 0;
  } else {
    cout << 1 << " " << n - 1 << "\n";
    for (int i = 0; i < n - 1; i++) {
      cout << a[i] * (n - 1) << " ";
      a[i] *= n;
    }
    cout << "\n";
    cout << n << " " << n << "\n";
    cout << a[n - 1] * (n - 1) << "\n";
    a[n - 1] *= n;
    cout << 1 << " " << n << "\n";
    for (int i = 0; i < n; i++) cout << -a[i] << " ";
  }
  return 0;
}
