#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 5;
int n, a[MAX];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%d", &a[i]);
  if (n == 1)
    printf("1 1\n%d\n1 1\n0\n1 1\n0", -a[0]);
  else if (n == 2)
    printf("1 1\n%d\n2 2\n%d\n1 1\n0", -a[0], -a[1]);
  else {
    printf("1 %d\n", n);
    for (int i = 0; i < n; ++i) printf("%lld ", -a[i] * 1ll * n);
    puts("");
    printf("1 %d\n", n - 1);
    for (int i = 0; i < n - 1; ++i) printf("%lld ", a[i] * 1ll * (n - 1));
    puts("");
    printf("%d %d\n%lld", n, n, a[n - 1] * 1ll * (n - 1));
  }
}
