n = int(input()) s = int(input()) sum = 0 split_s = s.split for i in range(0, n): sum += split_s[i] print(sum)