use std::io::{self, Read}; use std::collections::HashMap; fn read_stdin() -> Vec { let mut buffer = String::new(); io::stdin().read_to_string(&mut buffer).ok(); buffer.trim().split('\n').map(|s| s.to_string()).collect() } fn main() { let input = read_stdin(); let splitted: Vec = input[0].split(' ').map(|s| s.parse::().unwrap()).collect(); let a = &splitted[0]; let b = &splitted[1]; for i in *a..*b + 1 { if i % 3 == 0 || i.to_string().contains("3") { println!("{}", i); } } }