#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  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';
      cout << -a[0] << '\n';
      cout << 1 << " " << 1 << '\n';
      cout << 0 << '\n';
      cout << 1 << " " << 1 << '\n';
      cout << 0 << '\n';
      break;
    }
    cout << 1 << " " << n - 1 << '\n';
    for (long long i = 0; i < n - 1; i++) {
      long long v = (a[i] % n);
      v = (v + n) % n;
      a[i] += v * (n - 1);
      cout << v * (n - 1) << " ";
    }
    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] << " ";
    }
    cout << '\n';
  }
  return 0;
}
