#include<bits/stdc++.h>
using namespace std;
const int N = 10010;
int a[N], s[N];
int n;
int main(){
cin >> n;
for (int i = 1; i <= n; i ++ ){
cin >> a[i];
s[i] = s[i - 1] + a[i];
}
for(int i = 1; i <= n; i ++ ){
cout << s[i] << " ";
}
return 0;
}
