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