puts [regsub -all "(\[^ ]{0,[expr [gets stdin]-1]})\\s" [read stdin] \\1\n]