#include <bits/stdc++.h>
using namespace std;
void solve();
void pre();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
inline void solve() {
  long long n, i, j, k;
  cin >> n;
  long long a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n == 1) {
    cout << 1 << " " << 1 << "\n";
    cout << 0 << "\n";
    cout << 1 << " " << 1 << "\n";
    cout << 0 << "\n";
    cout << 1 << " " << 1 << "\n";
    cout << -a[0] << "\n";
    return;
  }
  cout << 1 << " " << 1 << "\n";
  cout << -a[0] << "\n";
  cout << 1 << " " << n << "\n";
  cout << 0 << " ";
  for (i = 1; i < n; i++) {
    cout << -n * a[i] << " ";
  }
  cout << "\n";
  cout << 2 << " " << n << "\n";
  for (i = 1; i < n; i++) cout << (n - 1) * a[i] << " ";
  cout << "\n";
}
