import java.util.Scanner; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); IntStream.rangeClosed(1, n).forEach(i -> { boolean isFizz = (i % 3 == 0); boolean isBuzz = (i % 5 == 0); if (isFizz) { System.out.print("Fizz"); } if (isBuzz) { System.out.print("Buzz"); } if (!isFizz & !isBuzz) { System.out.print(i); } if (i != n) { System.out.println(); } }); } }