#include <bits/stdc++.h>
using namespace std;
void d_m_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
long long power(long long n, long long x) {
  if (x == 0) return 1;
  long long small = power(n, x / 2);
  small = (small * small);
  if (1 & x) small = (n * small);
  return small;
}
int32_t main() {
  d_m_c();
  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 << endl;
    cout << -a[0] << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
  } else {
    cout << 1 << " " << 1 << endl;
    cout << -a[0] << endl;
    a[0] = 0;
    cout << 2 << " " << n << endl;
    for (long long i = 1; i < n; i++) cout << a[i] * (n - 1) << " ";
    cout << endl;
    cout << 1 << " " << n << endl;
    for (long long i = 0; i < n; i++) cout << -a[i] * n << " ";
    cout << endl;
  }
  return 0;
}
