#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<ll> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  if (n == 1) {
    for (int i = 0; i < 2; i++) {
      cout << "1 1\n" << 0 << endl;
    }
    cout << "1 1\n" << -v[0] << endl;
    return 0;
  }
  cout << "1 1\n" << -v[0] << endl;
  cout << "1 " << n << endl;
  cout << 0 << " ";
  for (int i = 1; i < n; i++) {
    cout << -(n * v[i]) << " ";
  }
  cout << endl;
  cout << "2 " << n << endl;
  for (int i = 1; i < n; i++) {
    cout << (n - 1) * v[i] << " ";
  }
  cout << endl;
  return 0;
}
