N = input() n = input().split(' ') count = 0 for idx in range(0, int(N)): count = count + int(n[idx]) idx = idx + 1 print(count)