N = int(input()) a = [] for i in range(N): a.append(int(input())) sum = 0 count = N while count > 0: for j in a: sum = sum + j count -= 1 print(sum)