use std::io; use std::io::prelude::*; fn fizzbuzz(n: usize) -> String { match (n % 3, n % 5) { (0, 0) => "FizzBuzz".to_string(), (0, _) => "Fizz".to_string(), (_, 0) => "Buzz".to_string(), _ => n.to_string(), } } fn main() { let stdin = io::read_to_string(io::stdin()).unwrap(); let mut stdin = stdin.split_whitespace(); let stdout = io::stdout(); let mut stdout = io::BufWriter::new(stdout.lock()); let n: usize = stdin.next().unwrap().parse::().unwrap(); for i in 1..=n { writeln!(stdout, "{}", fizzbuzz(i)).unwrap_or(()); } }