#include <bits/stdc++.h>
using namespace std;
int oo = 1000000000;
long long n;
long long a[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(nullptr);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << 1 << " " << 1 << endl;
    cout << -a[1] << endl;
    a[1] = 0;
    cout << 1 << " " << 1 << endl;
    cout << -a[1] << endl;
    cout << 1 << " " << 1 << endl;
    cout << -a[1] << endl;
    return 0;
  }
  cout << 1 << " " << 1 << endl;
  cout << n - (a[1] % n) << endl;
  a[1] += n - (a[1] % n);
  cout << 2 << " " << n << endl;
  for (int i = 2; i <= n; i++) {
    cout << (a[i] % n) * (n - 1) << " ";
    a[i] += (a[i] % n) * (n - 1);
  }
  cout << endl;
  cout << 1 << " " << n << endl;
  for (int i = 1; i <= n; i++) cout << -a[i] << " ";
  return 0;
}
