import scala.io.StdIn object Yukicoder extends App { (0 to 999) find { num => val formatNum = num.formatted("%03d") println(formatNum) StdIn.readLine() == "unlocked" } }