#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  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\n";
    cout << "0\n";
  } else {
    cout << "1 " << n - 1 << "\n";
    for (long long i = 0; i < n - 1; i++) {
      long long a = arr[i] % (n);
      cout << a * (n - 1) << " ";
      arr[i] += a * (n - 1);
    }
    cout << "\n";
  }
  cout << n << " " << n << "\n";
  cout << n - arr[n - 1] << "\n";
  arr[n - 1] += n - arr[n - 1];
  cout << "1 " << n << "\n";
  for (long long i = 0; i < n; i++) {
    cout << arr[i] * -1 << " ";
  }
  cout << "\n";
  return 0;
}
