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