from decimal import Decimal N = int(raw_input()) A = [raw_input() for i in range(N)] s = Decimal(A[0]) for i in range(1,N): s += Decimal(A[i]) print "{0:.10f}".format(s)