#include <bits/stdc++.h>
using namespace std;
int n;
long long a[100005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << '\n';
    cout << -a[1] << '\n';
    a[1] = 0;
    cout << 1 << " " << 1 << '\n';
    cout << -a[1] << '\n';
    cout << 1 << " " << 1 << '\n';
    cout << -a[1] << '\n';
    exit(0);
  }
  cout << 1 << " " << 1 << '\n';
  cout << -a[1] << '\n';
  a[1] = 0;
  cout << 2 << " " << n << '\n';
  for (int i = 2; i <= n; i++) {
    int tg = a[i] % n;
    long long kq = 1ll * tg * (n - 1);
    cout << kq << " ";
    a[i] += kq;
  }
  cout << '\n';
  cout << 1 << " " << n << '\n';
  for (int i = 1; i <= n; i++) cout << -a[i] << " ";
}
