'''simple docstring'''

def 							UpperCamelCase__			(			a__			,      a__      ):


						'''simple docstring'''






						if not isinstance(a__			,      a__      ):
												raise ValueError('iterations must be defined as integers'      )
						if not isinstance(a__			,      a__      ) or not number >= 1:
												raise ValueError(
												    'starting number must be\n                         and integer and be more than 0'      )
						if not iterations >= 1:
												raise ValueError('Iterations must be done more than 0 times to play FizzBuzz'      )

						_lowerCAmelCase										=''
						while number <= iterations:
												if number % 3 == 0:
																		out += "Fizz"
												if number % 5 == 0:
																		out += "Buzz"
												if 0 not in (number % 3, number % 5):
																		out += str(a__      )

												# print(out)
												number += 1
												out += " "
						return out


if __name__ == "__main__":
							import doctest

							doctest.testmod()






'''simple docstring'''

def 							UpperCamelCase__			(			a__ = 1_0_0_0      ):


						'''simple docstring'''






						_lowerCAmelCase										=2**power
						_lowerCAmelCase										=0
						while n:
												_lowerCAmelCase						,				_lowerCAmelCase										=r + n % 1_0, n // 1_0
						return r


if __name__ == "__main__":
							print(solution(int(str(input()).strip())))





