fun main(args:Array<String>){
    val  H= readLine()!!.toInt()
    val W = readLine()!!.toInt()
    val N = readLine()!!.toInt()
    var a = 1
    var d: Int

    if (H > W){
        d = H
    }else{
        d = W
    }

    while (true){
        if( d*a >= N){
            println(a)
            break
        }
        a++
    }

}