#include <bits/stdc++.h>
using namespace std;
int n;
long long a[100009];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << -a[1] << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    cout << 1 << " " << 1 << endl;
    cout << 0 << endl;
    return 0;
  }
  cout << 1 << " " << 1 << endl;
  cout << -a[1] << endl;
  cout << 2 << " " << n << endl;
  for (int i = 2; i <= n; i++) {
    cout << (n - 1) * a[i] << " ";
  }
  cout << endl;
  cout << 1 << " " << n << endl;
  cout << 0 << " ";
  for (int i = 2; i <= n; i++) {
    cout << -a[i] * n << " ";
  }
  return 0;
}
