# coding: utf-8 ct = int(input().rstrip()) ans = 0 for i in range(ct): ans += int(input().rstrip()) print(ans) #