
fun main(args:Array<String>) {
    val list = readLine()!!.split(" ").map(String::toInt)
    list.forEachIndexed { idx, value ->
        if (value == 0) {
            print(idx + 1)
        }
     }


}
