a#b=a:[','|mod(length b)4>2]++b m@main=getLine>>=putStrLn.foldr(#)"">>m