num = int(input()) total = 0 array = [] for i in range(num): array += int(input()) total += array[i] ** (1/2) print(total)