import math n = int(input()) one = int(math.e / math.e) three = one+one+one five = three+one+one for i in range(one, n+one): ret = '' if not (i % three): ret += 'Fizz' if not (i % five): ret += 'Buzz' if not ret: ret = str(i) print(ret)