#include <bits/stdc++.h>
using namespace std;
long long a[100005];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  {
    long long n;
    cin >> n;
    for (long long i = 1; i <= (n); ++i) cin >> a[i];
    if (n == 1) {
      cout << "1 1\n" << -a[1] << endl;
      cout << "1 1\n0\n1 1\n0";
      return 0;
    }
    if (1) {
      cout << "1 1\n";
      cout << n - a[1] << endl;
      a[1] = n;
      cout << "2 " << n << endl;
      for (long long i = 2; i <= (n); ++i) {
        long long p = n - a[i];
        cout << -p * (n - 1) << " ";
        a[i] = a[i] - p * (n - 1);
      }
      cout << endl;
      cout << "1 " << n << endl;
      for (long long i = 1; i <= (n); ++i) cout << -a[i] << " ";
    } else {
    }
  }
}
