import java.util.*; import java.io.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(br.readLine()),z='a'-'a'; int a=z;a++;a++;a++; int b=a;b++;b++; int i=z;i++; for(;i<=n;i++){ if(i%a==z&&i%b==z){ pl("FizzBuzz"); }else if(i%a==z){ pl("Fizz"); }else if(i%b==z){ pl("Buzz"); }else{ pl(i+""); } } } public static void pl(String str){ System.out.println(str); } }