rInteger :: String -> Integer rInteger = read main = do getLine zs <- map rInteger . words <$> getLine putStrLn $ show (last zs) ++ "/" ++ show (head zs)