main=""&"aaaaaaaaabc" s&(x:t)=putStrLn(s++x:t)>>(s++" ")&([t,min"baaa"$max"abc"$x:"a"]>>=tail)