#include <bits/stdc++.h>
template <class T>
inline void read(T &x) {
  x = 0;
  int f = 0;
  char ch = getchar();
  while (!isdigit(ch)) {
    f |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  x = f ? -x : x;
  return;
}
long long a[100010];
long long n;
int main() {
  read(n);
  for (int i = 1; i <= n; ++i) read(a[i]);
  if (n == 1) {
    printf("1 1\n%lld\n1 1\n0\n1 1\n0\n", -a[1]);
    return 0;
  }
  printf("1 %lld\n", n - 1);
  for (int i = 1; i < n; ++i) {
    printf("%lld ", (n - 1) * a[i]);
  }
  printf("\n%lld %lld\n%lld\n1 %lld\n", n, n, n - a[n], n);
  for (int i = 1; i < n; ++i) printf("%lld ", -n * a[i]);
  printf("%lld\n", -n);
  return 0;
}
