import Control.Applicative

main :: IO ()
main = solve <$> readLn <*> readLn <*> readLn >>= print

solve :: Int -> Int -> Int -> Int
solve h w n = let l = max h w
              in (n + l - 1) `div` l
