import math import sys pin=sys.stdin.readline ans=0 N=int(pin()) for i in range(N): x=int(pin()) ans+=math.sqrt(x) print(ans)