num = int(input()) total = 0 array = [] for i in range(num): array += input() array_int = list(map(int, array)) total += array_int[i] ** 0.5 print(total)