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