use proconio::input; fn main() { input! { a: usize, b: usize, } let ans: Vec = (a..=b) .filter(|num| { let str = num.to_string(); str.chars().any(|c| c == '3') || num % 3 == 0 }) .collect(); for a in ans { println!("{a}"); } }