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