#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll a[200001],prefix[200001];
vector<ll> adj[100001];
void solve()
{
ll i,j,k,l,m,n,o,p,q,r;
cin>>n;
//cout<<adj[10000].size()<<endl;
vector<pair<ll,ll>> vp;
for(i=0;i<n;i++)
{
cin>>a[i];
if(i>=1)
{
ll x,y;
o=-a[i];
p=abs(o);
if(p%n==0)
{
if(o>0)
vp.push_back({-1*p/n,0});
else
vp.push_back({p/n,0});
}
else
{
k=p/n;
k++;
q=k*n;
if(o>0)
{
y=q-o;
x=k-y;
vp.push_back({-1*x,-1*y});
}
else
{
k--;
q=-1*k;
q*=n;
y=o-q;
x=k-y;
vp.push_back({x,y});
}
}
}
}
cout<<1<<" "<<n<<endl;
for(i=0;i<n;i++)
{
if(i==0)
{
cout<<n<<" ";
a[0]+=n;
}
else
{
cout<<vp[i-1].first*(-1*n)<<" ";
}
}
cout<<endl;
cout<<2<<" "<<n<<endl;
for(i=0;i<n;i++)
{
if(i==0)
{
}
else
{
cout<<vp[i-1].second*(-1*(n-1))<<" ";
}
}
cout<<endl;
cout<<1<<" "<<1<<endl;
cout<<-1*a[0]<<endl;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
ll t=1;
//cin>>t;
while(t--)
{
solve();
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKdHlwZWRlZiBsb25nIGxvbmcgaW50IGxsOwpsbCBhWzIwMDAwMV0scHJlZml4WzIwMDAwMV07CnZlY3RvcjxsbD4gYWRqWzEwMDAwMV07CnZvaWQgc29sdmUoKQp7CiAgICAgbGwgaSxqLGssbCxtLG4sbyxwLHEscjsKICAgICBjaW4+Pm47CiAgICAKICAgICAvL2NvdXQ8PGFkalsxMDAwMF0uc2l6ZSgpPDxlbmRsOwogICAgIHZlY3RvcjxwYWlyPGxsLGxsPj4gdnA7CiAgICAgZm9yKGk9MDtpPG47aSsrKQogICAgIHsKICAgICAgICAgY2luPj5hW2ldOwogICAgICAgICBpZihpPj0xKQogICAgICAgICB7CiAgICAgICAgICAgICBsbCB4LHk7CiAgICAgICAgICAgICBvPS1hW2ldOwogICAgICAgICAgICAgcD1hYnMobyk7CiAgICAgICAgICAgICBpZihwJW49PTApCiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgaWYobz4wKQogICAgICAgICAgICAgICAgIHZwLnB1c2hfYmFjayh7LTEqcC9uLDB9KTsKICAgICAgICAgICAgICAgICBlbHNlIAogICAgICAgICAgICAgICAgIHZwLnB1c2hfYmFjayh7cC9uLDB9KTsKICAgICAgICAgICAgIH0KICAgICAgICAgICAgIGVsc2UgCiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgaz1wL247CiAgICAgICAgICAgICAgICAgaysrOwogICAgICAgICAgICAgICAgIHE9aypuOwogICAgICAgICAgICAgICAgIGlmKG8+MCkKICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgIHk9cS1vOwogICAgICAgICAgICAgICAgICAgICB4PWsteTsKICAgICAgICAgICAgICAgICAgICAgdnAucHVzaF9iYWNrKHstMSp4LC0xKnl9KTsKICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgZWxzZSAKICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgIGstLTsKICAgICAgICAgICAgICAgICAgICAgcT0tMSprOwogICAgICAgICAgICAgICAgICAgICBxKj1uOwogICAgICAgICAgICAgICAgICAgICB5PW8tcTsKICAgICAgICAgICAgICAgICAgICAgeD1rLXk7CiAgICAgICAgICAgICAgICAgICAgIHZwLnB1c2hfYmFjayh7eCx5fSk7CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgCiAgICAgfQogICAgIGNvdXQ8PDE8PCIgIjw8bjw8ZW5kbDsKICAgICBmb3IoaT0wO2k8bjtpKyspCiAgICAgewogICAgICAgICBpZihpPT0wKQogICAgICAgICB7CiAgICAgICAgICAgICBjb3V0PDxuPDwiICI7CiAgICAgICAgICAgICBhWzBdKz1uOwogICAgICAgICB9CiAgICAgICAgIGVsc2UgCiAgICAgICAgIHsKICAgICAgICAgICAgIGNvdXQ8PHZwW2ktMV0uZmlyc3QqKC0xKm4pPDwiICI7CiAgICAgICAgIH0KICAgICB9CiAgICAgY291dDw8ZW5kbDsKICAgICBjb3V0PDwyPDwiICI8PG48PGVuZGw7CiAgICAgZm9yKGk9MDtpPG47aSsrKQogICAgIHsKICAgICAgICAgaWYoaT09MCkKICAgICAgICAgewogICAgICAgICAgICAKICAgICAgICAgfQogICAgICAgICBlbHNlIAogICAgICAgICB7CiAgICAgICAgICAgICBjb3V0PDx2cFtpLTFdLnNlY29uZCooLTEqKG4tMSkpPDwiICI7CiAgICAgICAgIH0KICAgICB9CiAgICAgY291dDw8ZW5kbDsKICAgICBjb3V0PDwxPDwiICI8PDE8PGVuZGw7CiAgICAgY291dDw8LTEqYVswXTw8ZW5kbDsKCn0KaW50IG1haW4oKQp7CiAgICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICAgY2luLnRpZSgwKTsKICAgICBsbCB0PTE7CiAgICAgLy9jaW4+PnQ7CiAgICAgd2hpbGUodC0tKQogICAgIHsKICAgICAgICAgc29sdmUoKTsKICAgICB9CiAgICByZXR1cm4gMDsKfQo=