#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9, INF = 1e18;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    if (n == 1) {
      cout << 1 << " " << 1 << "\n";
      cout << a[0] << "\n";
      cout << 1 << " " << 1 << "\n";
      cout << a[0] << "\n";
      cout << 1 << " " << 1 << "\n";
      cout << -3 * a[0] << "\n";
      continue;
    }
    cout << 1 << " " << n << "\n";
    for (int i = 0; i < n; i++) {
      cout << -n * a[i] << " ";
      a[i] -= n * a[i];
    }
    cout << "\n";
    cout << 1 << " " << n - 1 << "\n";
    for (int i = 0; i < n - 1; i++) cout << -a[i] << " ";
    cout << "\n";
    cout << n << " " << n << "\n";
    cout << -a[n - 1] << "\n";
  }
  return 0;
}
