zero=int(False) one=int(True) two=one+one three=two+one four=three+one five=four+one N=int(input()) for i in range(one,N+one): if i % three == zero and i % five == zero: print('FizzBuzz') elif i % three == zero: print('Fizz') elif i % five == zero: print('Buzz') else: print(i)