N = int(input()) import math ans = 0 for i in range(N): ans += math.sqrt(int(input())) print(ans)