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