x;main(n){for(scanf("%d",&n);n>x++;puts(x%5?"":"Buzz"))printf(x%3?x%5?"%d":0:"Fizz",x);}