N=int(input()) ANS=[] for i in range(1,N+1): if i%3==0 and i%5==0: ANS.append("FizzBuzz") elif i%3==0: ANS.append("Fizz") elif i%5==0: ANS.append("Buzz") else: ANS.append(i) print("\n".join(map(str,ANS)))