solve :: Integer -> Integer -> Integer -> Integer
solve h w n = ceiling $ toRational n / toRational (max h w)

main :: IO ()
main = do
    h <- readLn
    w <- readLn
    n <- readLn
    print $ solve h w n