main(){int f='d'-'a',b='f'-'a',n,i='b'-'a';scanf("%d",&n);for(i;i<=n;i++)i%f||i%b?i%f?i%b?printf("%d\n",i):puts("Buzz"):puts("Fizz"):puts("FizzBuzz");}