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