fun main(args: Array<String>) {
    val H = readInputLine().toInt()
    val W = readInputLine().toInt()
    val N = readInputLine().toInt()

    if (H > W) {
        println(N / H + if (N % H == 0) 0 else 1)
    } else {
        println(N / W + if (N % W == 0) 0 else 1)
    }
}

fun readInputLine(): String {
    return readLine()!!
}
