fun main(args: Array) { val list = readLine()!!.split(" ").map { it.toInt() } for (i in 0 until 10) { if (list[i] != i + 1) { println(i + 1) return } } }