#include <bits/stdc++.h>
using namespace std;
long long const max1 = 1e5 + 5;
long long const mod = 1e9 + 7;
long long inf = 1e18;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    if (n == 1) {
      cout << 1 << " " << 1 << "\n"
           << 0 << "\n"
           << 1 << " " << 1 << "\n"
           << 0 << "\n"
           << 1 << " " << 1 << "\n"
           << -a[0];
    } else {
      long long b[n - 1];
      for (long long i = 0; i < n - 1; i++) {
        b[i] = a[i] % n;
      }
      cout << 1 << " " << n - 1 << "\n";
      for (long long i = 0; i < n - 1; i++) {
        cout << (n - 1) * b[i] << " ";
        a[i] += (n - 1) * b[i];
      }
      cout << "\n";
      cout << n << " " << n << "\n";
      cout << -a[n - 1] << "\n";
      a[n - 1] = 0;
      cout << 1 << " " << n << "\n";
      for (long long i = 0; i < n; i++) {
        cout << -a[i] << " ";
      }
    }
  }
}
