m@main=getLine>>=putStrLn.f.last.max")">>m f ')'="smiley" f _="frowny"