import math import sys ans = 0.0 for i in range(int(sys.stdin.readline().strip())): ans += math.sqrt(float(sys.stdin.readline().strip())) print(ans)