N = int(input()) num = input() l_num = num.split(' ') print(sum(map(int, l_num)))