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