/**************************************
* AUTHOR : SHAKIL MOSHARROF 202014048 *
* NICK : xBCC [2013-2019] C/N:1819    *
* INSTITUTION : MIST CSE 20           *
***************************************/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include<float.h>
#define PI 3.14
int main()
{
	int n;
	scanf("%d",&n);

	for (int i = 1; i <= n; i++)
	{
		if (i%3==0 && i%5!=0)
		{
			printf("Fizz\n");
		}
		if (i%3==0 && i%5==0)
		{
			printf("FizzBuzz\n");
		}
		if (i%3!=0 && i%5==0)
		{
			printf("Buzz\n");
		}
		if(i%3!=0 && i%5!=0)
		{
			printf("%d\n",i );
		}
	}

return 0;
}
/*******************************
*
*
*
*
*
*
********************************/
