def main(): Fizz = 3 Bazz = 5 FizzBazz = Fizz * Bazz x = int(input()) for i in range(1,x+1): if i%FizzBazz == 0: print("FizzBazz") elif i%Bazz == 0: print("Bazz") elif i%Fizz == 0: print("Fizz") else: print(x) if __name__ == "__main__": main()