fun main() { val (a,b) = readLine()!!.split(" ").map{it.toInt()} for (i in a..b) { if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) { println(i) } } }