import decimal import sys input = sys.stdin.readline def one_str(): return input() def many_int(): return list(map(int, input().split())) input_count = 0 N = many_int()[0] now = 0 for i in range(N): now += decimal.Decimal(many_int()[0]**(1/2)) print(now)