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

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

main = do
  [h, w, n] <- replicateM 3 getInt
  let m = max h w
      ans = (n + m - 1) `div` m
  print ans