object Main extends App{
    def readLine() = io.StdIn.readLine()
    
    val h = readLine().toInt
    val w = readLine().toInt
    val n = readLine().toInt
    
    val answer = math.ceil(n.toDouble / math.max(h, w).toDouble)
    
    println(answer.toInt)
}
