fun main(args: Array<String>) {

  val h = readLine()!!.toInt()
  val w = readLine()!!.toInt()
  val n = readLine()!!.toInt()

  val line = if (h > w) h else w

  var count = n / line
  if (n%line > 0) {
    count += 1
  }

  print(count)
}
