N = int(input()) now = 0 for _ in range(N): a = int(input()) now += a ** 0.5 print(now)