import java.util.Scanner; class Main{ public static void main(String[] agrs) { Scanner stdIn=new Scanner(System.in); int f='d'-'a',b='f'-'a',n,i='b'-'a',t='a'-'a'; n=stdIn.nextInt(); for(;i<=n;i++) { if(i%f!=t||i%b!=t) { if(i%f!=t) { if(i%b==t) System.out.println("Buzz"); else System.out.println(i); } else System.out.println("Fizz"); } else System.out.println("FizzBuzz"); } } }