import math N = int(input()) x = [float(input()) for _ in range(N)] a = 0 for n in x: b = math.sqrt(n) a += b print(a)