#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
void faster() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
}
void solve() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (__typeof(n) i = (0) - ((0) > (n)); i != (n) - ((0) > (n));
       i += 1 - 2 * ((0) > (n)))
    cin >> a[i];
  cout << 1 << " " << 1 << endl;
  cout << -1 * a[0] << endl;
  a[0] = 0;
  if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    return;
  }
  cout << 2 << " " << n << endl;
  for (__typeof(n) i = (1) - ((1) > (n)); i != (n) - ((1) > (n));
       i += 1 - 2 * ((1) > (n))) {
    cout << (n - 1) * a[i] << " ";
    a[i] += (n - 1) * a[i];
  }
  cout << endl;
  cout << 1 << " " << n << endl;
  for (__typeof(n) i = (0) - ((0) > (n)); i != (n) - ((0) > (n));
       i += 1 - 2 * ((0) > (n)))
    cout << -1 * a[i] << " ";
  cout << endl;
}
signed main() {
  faster();
  long long t = 1;
  while (t--) solve();
}
