use std::fmt::Debug; use std::io::stdin; use std::str::FromStr; fn read_line() -> Vec where T: FromStr, ::Err: Debug { let mut s = String::new(); stdin().read_line(&mut s).unwrap(); s.trim().split_whitespace().map(|c| T::from_str(c).unwrap()).collect() } fn main() { let line1: Vec = read_line(); let n: usize = line1[0]; (1..n + 1).for_each(|x| { match x { it if it % 15 == 0 => println!("FizzBuzz"), it if it % 5 == 0 => println!("Buzz"), it if it % 3 == 0 => println!("Fizz"), _ => println!("{}", x) } }); }