import Control.Applicative main :: IO () main = do n <- read <$> getLine zs <- words <$> getLine putStrLn $ solve n zs solve :: Int -> [String] -> String solve n zs = last zs ++ "/" ++ head zs