main = do
  h <- readLn :: IO Int
  w <- readLn :: IO Int
  n <- readLn :: IO Int
  putStrLn $ show $ if h < w
                    then
                        let x = div n w in x + if x * w == n then 0 else 1
                    else
                        let x = div n h in x + if x * h == n then 0 else 1
