for i in range(1,int(raw_input()) + 1): if i % 3 == 0: print 'Fizz' if i % 5 == 0: print 'Buff' if i % 3 != 0 and i % 3 != 0: print i