n = int(raw_input()) s = 0 for _ in range(n): f = float(raw_input()) s += f * (10**10) print str(s/(10**10)) + '.' + str(s%(10**10))