nn = [] for i in range(int(input())): nn.append(int(input())) print(sum(nn))