import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { int ONE = 10 / 10; int TWO = ONE + ONE; int THREE = ONE + ONE + ONE; int FOUR = ONE + ONE + ONE + ONE; int FIVE = ONE + ONE + ONE + ONE + ONE; int FIFTEEN = THREE * FIVE; Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for (int i = 1; i <= N; ++i) { if (i % FIFTEEN == 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); } } } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }