#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> v(n);
  for (long long i = 0; i < n; i++) cin >> v[i];
  if (n == 1) {
    cout << "1 "
         << "1\n";
    cout << 0 - v[0] << "\n";
    cout << "1 1\n";
    cout << 0 << "\n";
    cout << "1 1\n";
    cout << 0 << "\n";
    return 0;
  }
  vector<vector<long long>> ans(3);
  for (long long i = 0; i < n - 1; i++) {
    long long val = (v[i] * (n - 1));
    ans[0].push_back(val);
    v[i] = val + v[i];
  }
  long long x = n * v[n - 1] - v[n - 1];
  ans[1].push_back(x);
  v[n - 1] = n * v[n - 1];
  for (long long i = 0; i < n; i++) {
    long long val = 0 - v[i];
    ans[2].push_back(val);
  }
  cout << 1 << " " << n - 1 << "\n";
  for (long long i = 0; i < n - 1; i++) cout << ans[0][i] << " ";
  cout << "\n";
  cout << n << " " << n << "\n";
  cout << ans[1][0] << "\n";
  cout << 1 << " " << n << "\n";
  for (long long i = 0; i < n; i++) cout << ans[2][i] << " ";
  cout << "\n";
  return 0;
}
