#include <bits/stdc++.h>
using namespace std;
long long angka[100005];
int main() {
  long long tc, i, j, banyak, perlu, tampung;
  scanf("%lld", &banyak);
  getchar();
  for (i = 0; i < banyak; i++) {
    scanf("%lld", &angka[i]);
    getchar();
  }
  if (banyak == 1) {
    printf("1 1\n");
    printf("1\n");
    printf("1 1\n");
    printf("-1\n");
    printf("1 1\n");
    printf("%lld\n", angka[banyak - 1] * -1);
  } else {
    printf("1 %lld\n", banyak);
    for (i = 0; i < banyak; i++) {
      if (i != 0) {
        printf(" ");
      }
      tampung = angka[i] % (banyak - 1);
      perlu = banyak - 1 - tampung;
      angka[i] += (banyak * perlu);
      printf("%lld", perlu * banyak);
    }
    printf("\n");
    printf("1 %lld\n", banyak - 1);
    for (i = 0; i < banyak - 1; i++) {
      if (i != 0) {
        printf(" ");
      }
      printf("%lld", angka[i] * -1);
    }
    printf("\n");
    printf("%lld %lld\n", banyak, banyak);
    printf("%lld\n", angka[banyak - 1] * -1);
  }
  return 0;
}
