n = int(input()) one = len('a') three = len('aaa') five = len('abcde') for i in range(one, n + one): divisible_by_three = i % three == 0 divisible_by_five = i % five == 0 if divisible_by_three and divisible_by_five: print('FizzBuzz') elif divisible_by_three: print('Fizz') elif divisible_by_five: print('Buzz') else: print(i)