import Text.Printf (printf) main :: IO () main = getLine >> getLine >>= (\zs -> printf "%d/%d\n" (last zs) (head zs)) . map (read :: String -> Integer) . words