import std.c.stdio;void main(){int x,c;while(scanf("%d",&x)>0)c?printf("%d %d ",c+x,x):printf("%d ",x),c=x;}