#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 10;
long long n, a[N];
signed main() {
  scanf("%lld", &n);
  for (long long i = 1; i <= n; ++i) scanf("%lld", a + i);
  printf("%lld %lld\n", 1ll, n);
  for (long long i = 1; i <= n; ++i) printf("%lld ", -a[i] * n);
  puts("");
  if (n == 1) {
    puts("1 1");
    puts("0");
    puts("1 1");
    puts("0");
    return 0;
  }
  printf("%lld %lld\n", 2ll, n);
  for (long long i = 2; i <= n; ++i) printf("%lld ", a[i] * (n - 1));
  puts("");
  printf("%lld %lld\n", 1ll, 1ll);
  printf("%lld\n", a[1] * (n - 1));
  return 0;
}
