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