import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) one = N // N zero = one - one two = one + one three = two + one five = two + three for i in range(one, N + one): if i % (three * five) == 0: print('FizzBuzz') elif i % three == 0: print('Fizz') elif i % five == 0: print('Buzz') else: print(i)