main = solve <$> getLine <*> getLine >>= putStrLn solve x y = "(" ++ x ++ y ++ x ++ ")/"