n = int(input()) a = ord('a') three = ord('d') - a five = ord('f') - a one = ord('b') - a for i in range(n): current = i + one if current % three == 0 and current % five == 0: print("FizzBuzz") elif current % three == 0: print("Fizz") elif current % five == 0: print("Buzz") else: print(current)