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