main = do n <- readLn mapM_ putStrLn $ map f [1..n] f n | mod n 15 == 0 = "FizzBuzz" | mod n 5 == 0 = "Buzz" | mod n 3 == 0 = "Fizz" | otherwise = show n