#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return (b == 0 ? a : gcd(b, a % b)); }
long long fac(long long a) { return (a ? a * fac(a - 1) : 1); }
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  vector<long long> v(n);
  for (auto& x : v) cin >> x;
  if (n == 1) {
    cout << "1 1\n0\n1 1\n0\n1 1\n" << -v[0];
    return 0;
  }
  cout << "1 1\n"
       << -v[0] << "\n"
       << "1 " << n << "\n0 ";
  for (int i = 1; i < n; ++i) cout << -v[i] * n << " ";
  cout << "\n2 " << n << "\n";
  for (int i = 1; i < n; ++i) cout << v[i] * (n - 1) << " ";
}
