fun main(args : Array<String>) {
    val h = readLine()!!.toInt()
    val w = readLine()!!.toInt()
    val n = readLine()!!.toInt()

    val max = Math.max(h, w)

    println(n / max + if (n % max == 0) 0 else 1)
}