#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 10;
long long n, Map[N];
signed main() {
  while (cin >> n) {
    for (long long i = 1; i <= n; ++i) scanf("%I64d", &Map[i]);
    if (n == 1) {
      printf("1 1\n0\n");
      printf("1 1\n0\n");
      printf("1 1\n%I64d\n", Map[1] * (-1));
    } else {
      printf("1 %I64d\n", n);
      for (long long i = 1; i <= n; ++i) printf("%I64d ", Map[i] * n * (-1));
      printf("\n1 %I64d\n", n - 1);
      for (long long i = 1; i < n; ++i) printf("%I64d ", Map[i] * (n - 1));
      printf("\n%I64d %I64d\n%I64d\n", n, n, Map[n] * (n - 1));
    }
  }
  return 0;
}
