import sys n = int(input()) ans = 0 for i in range(n): ans += float(input()) s = str(ans) cnt = 0 flag = False for i in range(len(s)): if s[i] == '.': sys.stdout.write(s[i]) flag = True continue if flag: cnt += 1 sys.stdout.write(s[i]) for i in range(10-cnt): sys.stdout.write('0') print()