s = [input() for i in range(2)] n = int(s[0]) a = s[1].split() total = 0 for i in range(n): total += int(a[i]) print(str(total) + '\n')