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