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