import sys input = sys.stdin.readline n = int(input()) r = 0 for i in range(n): x = int(input()) r += x**0.5 print(r)