n = int(input()) result = 0 for i in range(n): v = int(input()) result += v**0.5 print(result)