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