use std::io::{self, Read}; fn read_stdin<'a>() -> 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 i = read_stdin().first().unwrap().parse::().unwrap(); for x in 1..i + 1 { println!("{}", match (x % 5, x % 3) { (0, 0) => "FizzBuzz".to_string(), (_, 0) => "Fizz".to_string(), (0, _) => "Buzz".to_string(), (_, _) => x.to_string(), } ); } }