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