#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
void solve() {
  long long n;
  cin >> n;
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) cin >> arr[i];
  if (n == 1) {
    cout << 1 << ' ' << 1 << endl;
    cout << 0 << endl;
    cout << 1 << ' ' << 1 << endl;
    cout << 0 << endl;
    cout << 1 << ' ' << 1 << endl;
    cout << -arr[0] << endl;
    return;
  }
  cout << 1 << ' ' << 1 << endl;
  cout << -arr[0] << endl;
  cout << 1 << ' ' << n << endl;
  cout << 0 << ' ';
  for (long long i = 1; i < n; i++) cout << -(n * arr[i]) << ' ';
  cout << endl;
  cout << 2 << ' ' << n << endl;
  for (long long i = 1; i < n; i++) cout << (n - 1) * arr[i] << ' ';
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
