#include <bits/stdc++.h>
using namespace std;
const int Inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3fll;
int n;
long long a[1 << 17];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= (n); i++) scanf("%lld", a + i);
  if (n == 1) {
    puts("1 1\n0");
    puts("1 1\n0");
    printf("1 1\n%d\n", -a[1]);
    return 0;
  }
  puts("1 1");
  printf("%lld\n", -a[1]);
  a[1] = 0;
  printf("2 %d\n", n);
  int rl = n - 1;
  for (int i = (2); i <= (n); i++) {
    long long rem = a[i] % n;
    printf("%lld%c", rem * rl, i == n ? '\n' : ' ');
    a[i] += rem * rl;
  }
  printf("1 %d\n", n);
  for (int i = 1; i <= (n); i++) {
    printf("%lld%c", -a[i], i == n ? '\n' : ' ');
  }
  return 0;
}
