solve :: Int -> Int -> Int
solve a b
 | ((mod a b) == 0) = div a b
 | otherwise = (div a b) + 1

main = do
  h <- read <$> getLine :: IO Int
  w <- read <$> getLine :: IO Int
  n <- read <$> getLine :: IO Int
  print $ solve n (max h w)