n = int(raw_input()) + 1 for i in xrange(1,n): if i%5==0: if i%3==0: print "FizzBuzz" else: print "Buzz" elif i%3==0: print "Fizz" else: print i