n = int(input()) num = list(map(int,input().split())) print(sum(num))