read input z from cmd; debug: print wz=quickw(z)