module Main where

import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Control.Monad

readInt = fst . fromJust . BS.readInt
getInt = readInt <$> BS.getLine

main :: IO ()
main = do
  h <- getInt
  w <- getInt
  n <- getInt
  print $ check (if h > w then h else w) n 1

check :: Int -> Int -> Int -> Int
check x n m = if x*m < n then check x n (m+1) else m
