n=int(input()) zero=n-n one=n//n three=one+one+one five=three+one+one for i in range(one,n+one): ans="" if i%three==zero: ans+="Fizz" if i%five==zero: ans+="Buzz" if ans=="": print(i) else: print(ans)