import sys import math input=sys.stdin.readline N = int(input()) T = [] for i in range(N): x = int(input()) T.append(math.sqrt(x)) print(sum(T))