n = int(input()) one = len('z') three = len('zzz') five = len('zzzzz') for i in range(one, n + one): ret = '' if i % three == 0: ret += 'Fizz' if i % five == 0: ret += 'Buzz' if ret == '': ret += str(i) print(ret)