package main import "fmt" func main() { var A, B int fmt.Scan(&A, &B) for ; A <= B; A++ { if A%3 == 0 || A/10 == 3 || A%10 == 3 { fmt.Println(A) } } }