s=System.file.stdin|read(1e3);0:10<-method(n)[s=s|replace(n|str+"( "+n|str+")*","[\\0]");1;];s|print;