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