import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class App { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); scanner.close(); final int FIVE = 5; final int THREE = 3; List numList = new ArrayList<>(); for (Integer num = 1; num <= input; num++) { numList.add(num); } for (Integer i : numList) { if (i % THREE == 0 && i % FIVE == 0) { System.out.println("FizzBuzz"); } else if (i % THREE == 0) { System.out.println("Fizz"); } else if (i % FIVE == 0) { System.out.println("Buzz"); } else { System.out.println(i); } } } }