import Text.Printf time :: Int -> (Int, Int) time m = f $ divMod m 100 where f (h, m) = (10 + h, m * 6 `div` 10) main = readLn >>= solve . time where solve (h, m) = printf "%d:%02d\n" h m