fun main(arr:Array) { readLine()!!.split(" ").map { it.toLong() }.let { (it[0]..it[1]) }.filter { it%3 == 0.toLong() || it.toString().contains('3') }.forEach { println(it) } }