c = input() n = input() ns = n.split() a = 0 for i in ns: a += int(i) print(a)