input() A = sys.stdin.readlines() print(sum(map(int, A)))