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