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