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