while(1>0)println(readLine replaceAll("\\D(?=[A-Z]|$)","$01")replaceAll("\\d+|\\D+","$0 ")trim)