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