for i in range(1,int(input())+1): o="" if i%3==0: o+="Fizz" if i%5==0: o+="Buzz" print(o) if o!="" else print(i)