import List main=getContents>>=mapM(putStrLn.snd).sort.map(\t->(map(\_->'{')t,t)).lines