def options (a): for x in range(a): x = x + 1 if x % 3 == 0 and x % 5 == 0: print("FizzBuzz") elif x % 3 == 0: print("Fizz") elif x % 5 == 0: print("Buzz") else: print(x) inp = input() options(int(inp))