import sys a = input() a_int = int(a) for num in range(1, a_int + 1): if num % 3 == 0: sys.stdout.write("Fizz") if num % 5 == 0: sys.stdout.write("Buzz") if num % 3 != 0 and num % 5 != 0: sys.stdout.write(str(num)) print()