#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read()
{
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10-48+ch;ch=getchar(); }
return x*f;
}
const int maxn=100005;
const int mod=100000;
int n,ans;
int a[maxn];
signed main()
{
freopen("balance_beam.in","r",stdin);
freopen("balance_beam.out","w",stdout);
n=read();
for(int i=1;i<=n;i++)
a[i]=read()*mod;
for(int i=1;i<=n;i++)
{
int l=i,r=i;
ans=0;
int qwq=2;
while(l>1||r<n)
{
l--,r++;
if(l>0)ans+=(a[l]/qwq);
if(r<=n)ans+=(a[r]/qwq);
}
ans=max(ans,a[i]);
cout<<ans<<'\n';
}
return 0;
}