num = 0 for i in range(1,int(input())+1): num += 1 if (num % 3 == 0 and num % 5 ==0): print("FizzBuzz") elif num % 5 == 0 : print("Buzz") elif num % 3 == 0: print("Fizz") else : print(num)