use std::io; fn main() { let mut n = String::new(); io::stdin().read_line(&mut n).unwrap(); let n: usize = n.trim().parse().unwrap(); for i in 1..n+1 { match (i % 3, i % 5) { (0, 0) => println!("FizzBuzz"), (0, _) => println!("Fizz"), (_, 0) => println!("Buzz"), _ => println!("{}", i), }; } }