#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
double a[n];
for(int i = 0; i < n ; ++i){
cin >> a[i];
}
if(n >= 3){
for(int i = 2; i < n; i+=3){
double tmp = a[i - 1];
a[i - 1] = (a[i] + a[i - 2])/2;
a[i] = (tmp + a[i - 2])/2;
}
for(int i = 0; i < n ; ++i){
cout << a[i] <<((i == n - 1)? "\n" : " ");
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewoJaW50IG47CgljaW4gPj4gbjsKCWRvdWJsZSBhW25dOwoJZm9yKGludCBpID0gMDsgaSA8IG4gOyArK2kpewoJCWNpbiA+PiBhW2ldOwoJfQoJaWYobiA+PSAzKXsKCQlmb3IoaW50IGkgPSAyOyBpIDwgbjsgaSs9Myl7CgkJCWRvdWJsZSB0bXAgPSBhW2kgLSAxXTsKCQkJYVtpIC0gMV0gPSAoYVtpXSArIGFbaSAtIDJdKS8yOwoJCQlhW2ldID0gKHRtcCArIGFbaSAtIDJdKS8yOwoJCX0KCQlmb3IoaW50IGkgPSAwOyBpIDwgbiA7ICsraSl7CgkJY291dCA8PCBhW2ldIDw8KChpID09IG4gLSAxKT8gIlxuIiA6ICIgIik7CgkJfQoJfQoJcmV0dXJuIDA7Cn0=