#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
lli a[(int)(1e5 + 5)];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  cout << 1 << " " << 1 << "\n";
  cout << -a[0] << "\n";
  if (n == 1) {
    cout << 1 << " " << 1 << "\n";
    cout << 0 << "\n";
    cout << 1 << " " << 1 << "\n";
    cout << 0 << "\n";
    return 0;
  }
  a[0] = 0;
  cout << 2 << " " << n << "\n";
  lli temp;
  for (int i = 1; i < n; ++i) {
    if (a[i] >= 0) {
      temp = a[i] % n;
    } else {
      temp = n + a[i] % n;
    }
    temp *= n - 1;
    cout << temp << " ";
    a[i] += temp;
  }
  cout << "\n";
  cout << 1 << " " << n << "\n";
  for (int i = 0; i < n; ++i) {
    cout << -a[i] << " ";
  }
  return 0;
}
