N = int(input()) lista = ['a','a','a','a','a'] listb = ['b','b','b'] listc = ['c'] listd = [] five = len(lista) three= len(listb) one = len(listc) zero = len(listd) s = '' for i in range(one,N+one): s = '' if i%three == zero: s = 'Fizz' if i%five == zero: s = s+'Buzz' if s == '': s = i print(s)