#include <stdio.h>

int n, d[1000], dt[1000];

int main()
{
    freopen(".10.in","r",stdin);
    freopen(".10.out","w",stdout);
  scanf("%d", &n);

  for(int i=1; i<=n; i++)
    scanf("%d", &d[i]);

  for(int i=1; i<=n; i++)
  {
    printf("%d ", dt[i]=dt[i-1]+d[i]);
  }
  printf("\n");


}
