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