n = int(input()) for i in range(1,n+1): s = ["Fizz",''][i%3>0] + ["Buzz",''][i%5>0] print(i if s=='' else s)