#!/usr/bin/env python3
from math import sqrt
#
num=[]
hnd=open('numdata.txt','r')
while True:
  buff=hnd.readline()
  if not buff:
    break
  try:
    num.append(float(buff.strip()))
  except ValueError:
    pass
hnd.close()
#
hnd=open('sqrtdata.txt','w')
for x in num:
  hnd.write('{:6.2f}{:12.4f}\n'.format(x,sqrt(x)))
hnd.close()
