fun main(args: Array){ var (a,b)=readLine()!!.split(" ").map(String::toInt) for(i in a..b) { if (i % 3 == 0 || i.toString().contains("3")) { println(i) } } }