#include<stdio.h>

int main(void)
{
	static int i;
	int N;

	scanf("%d", &N);
	for(i++;i<=N;i++)
	{
		if(i%('p'-'a')==0) printf("FizzBuzz\n");
		else if(i%('f'-'a')==0) printf("Buzz\n");
		else if(i%('d'-'a')==0) printf("Fizz\n");
		else printf("%d\n", i);
	}
	return N-i;
}