main=interact(""%) p%x=p++x++do(a,' ':i)<-lex x;(y,z)<-[splitAt(length$words i!!0)$a++i];(p++y++" ")%z
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page