num = int(input()) a = [input() for i in range(num)] n = 0 for x in a: n += int(x) print(n)