#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 1000;
long long s[N];
int n;
int num[N];
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) scanf("%lld", &s[i]);
  if (n == 1) {
    printf("1 1\n");
    puts("0");
    printf("1 1\n");
    puts("0");
    printf("1 1\n");
    cout << s[1] * (-1) << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) num[i] = 0;
  for (int i = 0; i < n; i++) num[i] = 0;
  printf("1 1\n");
  cout << (-1) * s[1] << endl;
  cout << 2 << ' ' << n << endl;
  s[1] = 0;
  for (int i = 2; i <= n; ++i) {
    printf("%lld ", s[i] * (n - 1));
    s[i] += s[i] * (n - 1);
  }
  for (int i = 0; i < n; i++) num[i] = 0;
  printf("\n");
  cout << 1 << ' ' << n << endl;
  for (int i = 0; i < n; i++) num[i] = 0;
  for (int i = 1; i <= n; ++i) {
    printf("%lld ", s[i] * (-1));
  }
  printf("\n");
  return 0;
}
