import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String line = scanner.nextLine(); int num = Integer.parseInt(line); for (int i = 1; i <= num; i++) System.out.println(fizzbuzz(i)); } private static String fizzbuzz(int num) { if (num % 3 == 0 && num % 5 == 0) return "FizzBuzz"; else if (num % 3 == 0) return "Fizz"; else if (num % 5 == 0) return "Buzz"; else return ""; } }