N=int(input()) a=input().split() k = 0 for i in range(0,N): k+=int(a[i]) print(k)