package main import . "fmt" import . "strings" func main() { var a,b int64 Scan(&a,&b) for ;a <= b;a++ { s:=Sprint(a) if a%3==0||Contains(s,"3") { Println(s) } } }