#include <iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
int n;
cin >> n;
int firstprice[n];
for (int i = 0;i < n;i++)
cin >> firstprice[i];
int secondprice[n];
secondprice[0] = (firstprice[0] + firstprice[1]) / 2;
secondprice[n - 1] = (firstprice[n - 1] + firstprice[n - 2]) / 2;
for (int i = 1;i < n - 1;i++)
{
secondprice[i] = (firstprice[i - 1] + firstprice[i] + firstprice[i + 1])/3;
}
for (int i = 0;i < n;i++)
cout << secondprice[i] << " ";
return 0;
}
08-29
08-29