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