s = "SST" t = "SSSST" u = "T" three = s.find("T") five = t.find("T") one = u.fimd("T") n = input() strin = "" for count in range(one, n - one): if count % three == 0: strin = "Fizz" elif count % 5 == 0: strin = "Buzz" elif (count % 3 == 0) and (count % 5 == 0): strin = "FizzBuzz" else: strin = count print(strin)