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