import java.util.Scanner; public class Main { public static int ZERO = "".length(); public static int ONE = "A".length(); public static int THREE = "AAA".length(); public static int FIVE = "AAAAA".length(); public static int FIFTEEN = THREE * FIVE; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=ONE;i<=n;i++) { if (i % FIFTEEN == ZERO) { System.out.println("FizzBuzz"); }else if(i % THREE == ZERO) { System.out.println("Fizz"); }else if(i % FIVE == ZERO) { System.out.println("Buzz"); }else{ System.out.println(i); } } } }