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) == zero: print('FizzBuzz') elif i % three == zero: print('Fizz') elif i % five == zero: print('Buzz') else: print(i)