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