package yukiCoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No09002 { public static void main(String[] args) { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); try { int input = Integer.parseInt(bufferedReader.readLine()); for (int i = 1 ; i <= input ; i++) { if (0 == i%3 && 0 == i%5) { System.out.println("BuzzFizz"); } else if (0 == i%3) { System.out.println("Fizz"); } else if (0 == i%5) { System.out.println("Buzz"); } else { System.out.println(i); } } } catch (NumberFormatException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } }