#A = "Iaamastudent"
#B=[A[i:i+2] for i in range(0,len(A),2)]
# C='abcdefghijklmnopqrstuvwxyz'
# Dict={}
# a = 97
# for i in range(len(C)):
#     Dict.update({C[i]:a})
#     a+=1
# print(Dict)
A=list(map(int,input().split()))
B=[]
a=0
for item in A:
    a+=item
    B.append(a)
print(B)

a1efbefa247d3fdc847188f2755e352b6a8de460
<mask token>

<mask token>
for item in A:
    a += item
    B.append(a)
print(B)

A = list(map(int, input().split()))
B = []
a = 0
for item in A:
    a += item
    B.append(a)
print(B)

#A = "Iaamastudent"
#B=[A[i:i+2] for i in range(0,len(A),2)]
# C='abcdefghijklmnopqrstuvwxyz'
# Dict={}
# a = 97
# for i in range(len(C)):
#     Dict.update({C[i]:a})
#     a+=1
# print(Dict)
A=list(map(int,input().split()))
B=[]
a=0
for item in A:
    a+=item
    B.append(a)
print(B)
