use std::io::Read; fn solve(n: usize) { for i in 1..=n { if i % 15 == 0 { println!("{}", "FizzBuzz"); } else if i % 5 == 0 { println!("{}", "Buzz"); } else if i % 3 == 0 { println!("{}", "Fizz"); } else { println!("{}", i); } } } fn main() { let mut all_data = String::new(); std::io::stdin().read_to_string(&mut all_data).ok(); let n = all_data.trim().split('\n').next(); let n = n.unwrap().trim().parse().unwrap(); solve(n); }