n = int(raw_input()) x = len([n]) a = len([n,n,n]) b = len([n,n,n,n,n]) c = a * b for i in range(n): if not (i+x) % c: print "FizzBuzz" elif not (i+x) % b: print "Buzz" elif not (i+x) % a: print "Fizz" else: print i+1