import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines n=int(readline()) from decimal import * getcontext().prec=50 ans=Decimal(0) for _ in range(n): x=int(readline()) ans+=Decimal(x).sqrt() print(ans.quantize(Decimal('1e-18')))