import List;main=getLine>>=mapM(putStrLn.concat).mapM(\c->[[],[c]]).nub