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 (n % FIFTEEN == ZERO) { System.out.println("FizzBuzz"); }else if(n % THREE == ZERO) { System.out.println("Fizz"); }else if(n % FIVE == ZERO) { System.out.println("Buzz"); }else{ System.out.println(i); } } } }