fun main() { val (x, y, z) = readLine()!!.split(" ").map(String::toLong) var ans: Long = z if (x <= z) ans--; if (y <= z) ans--; println("${ans}") }