A = 0 B = 0 list = [B] n = int(input()) for i in range(0,n,1): A = int(input()) list[B] = A + list[B] print(list[B])