N = int(input()) for i in range(1, N+1): result = "" if i % 3 == 0: result = result + "Fizz" if i % 5 == 0: result = result + "Buzz" print(result if result else i)