n = int(input()) tot = 0 for _ in range(n): S = input() ind = S.index(".") S = S[:ind] + S[ind+1:].ljust(10, "0") tot += int(S) tot = str(tot) print(f"{tot[:-10]}.{tot[-10:]}")