from decimal import Decimal N = int(input()) s = sum(map(Decimal, [input() for i in range(N)])) print("{0:.10f}".format(s))