#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
long long a[N];
signed main() {
  long long n;
  cin >> n;
  for (long long i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << "1 1\n1\n";
    cout << "1 1\n-1\n";
    cout << "1 1\n" << -a[1];
    return 0;
  }
  cout << "1 " << n - 1 << endl;
  for (long long i = 1; i < n; ++i) {
    cout << a[i] * (n - 1) << ' ';
    a[i] *= n;
  }
  cout << endl;
  cout << n << " " << n << "\n";
  cout << n - a[n] << endl;
  a[n] = n;
  cout << 1 << " " << n << "\n";
  for (long long i = 1; i <= n; ++i) {
    cout << -a[i] << ' ';
  }
  return 0;
}
