import math n = int(input()) s = 0 for _ in range(n): x = float(input()) s += math.sqrt(x) print(f"{s:.17f}")