import GHC.Real m@main=getLine>>=putStrLn.(!show).read.map f>>m n:%1!s=s n n:%d!s=s n++'/':s d f '/'='%' f c=c