#include <bits/stdc++.h>
using namespace std;
long long A[100000];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ((void)0);
  ((void)0);
  ((void)0);
  int N;
  cin >> N;
  if (N == 1) {
    cin >> N;
    cout << "1 1\n" << -N << "\n1 1\n0\n1 1\n0\n";
    return 0;
  }
  cout << "1 " << N << '\n';
  for (int i = 0; i < N; i++) {
    int t;
    cin >> A[i];
    t = (N - 1 + A[i] % (N - 1)) % (N - 1);
    cout << (N - 1LL - t) * N << ' ';
    A[i] += (N - 1LL - t) * N;
    assert(A[i] % (N - 1) == 0);
  }
  cout << "\n2 " << N << '\n';
  for (int i = 1; i < N; i++) cout << -A[i] << ' ';
  cout << "\n1 1\n" << -A[0] << '\n';
  return 0;
}
