A = input() B = int(A) RetVal = 0 for x in range(B): tmp = input() RetVal = RetVal + int(tmp) print(RetVal)