n = int(input()) for n in range(n): if n % 3 == 0: print('Fizz') elif n % 5 == 0: print('Buzz') elif n % 3 == 0 and n % 5 == 0: print('FizzBuzz') else: print(n)