def main(): N = int(input()) for i in range(1,N+1): ans="" if i%3 == 0: ans="Fizz" if i%5 == 0: ans=ans + "Buzz" if ans=="": print(i) else: print(ans) if __name__=='__main__': main()