Prints the square roots
document . write ( " " ) ; ans . forEach ( p => { document . write ( p [ 0 ] . toFixed ( 6 ) ) ; if ( p [ 1 ] > 0 ) document . write ( " " ) ; if ( p [ 1 ] ) document . write ( p [ 1 ] . toFixed ( 6 ) + " " ) ; else document . write ( " " ) ; } ) ; }