n = int(input())
priceList = list( map(int, input().split()) )
newPriceList = priceList[:]
for i in range(n):
if i==0:
newPriceList[i] = int( (priceList[i] + priceList[i+1])/2 )
elif i==n-1:
newPriceList[i] = int( (priceList[i-1] + priceList[i])/2 )
else:
newPriceList[i] = int( (priceList[i-1] + priceList[i] + priceList[i+1] )/3 )
for ele in newPriceList:
print(ele, end=' ')
网友评论