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