X = input() n = [input() for i in range(X)] nx = sum(n) print nx