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