from sys import stdout,stdin def main(): stdin.readline() arry=list(map(int,stdin.readline().split())) Sum=0 for i in range(len(arry)): stdout.write(str(Sum+arry[i])+' ') Sum+=arry[i] main()