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