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