n=int(input()) zero = ord('a') - ord('a') one = ord('b') - ord('a') three = ord('d') - ord('a') five = ord('f') - ord('a') fifteen = ord('p') - ord('a') for i in range(one, n + one): if i % fifteen == zero: print("FizzBuzz") elif i % three == zero: print("Fizz") elif i % five == zero: print("Buzz") else: print(i)