n = int(input()) l = [int(input()) for i in n] print(sum(l))