#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  long long a[n];
  for (auto &it : a) {
    cin >> it;
  }
  if (n == 1) {
    cout << "1 1\n" << -a[0] << "\n";
    cout << "1 1\n0\n";
    cout << "1 1\n0\n";
    return;
  }
  cout << "1 1\n";
  cout << -a[0] << "\n";
  a[0] = 0;
  cout << "1 " << n << "\n";
  for (int i = 0; i < n; i++) {
    cout << -n * a[i] << " ";
  }
  cout << "\n2 " << n << "\n";
  for (int i = 1; i < n; i++) {
    cout << (n - 1) * a[i] << " ";
  }
  cout << "\n";
  return;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
