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 { if x % 15 == 0 { println!("FizzBuzz"); } else if x % 5 == 0 { println!("Buzz"); } else if x % 3 == 0 { println!("Fizz"); } else { println!("{}", x); } } }