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