t = ('Fizz', 'Buzz', 'FizzBuzz') for i in range(1, int(raw_input())+1): if i % 3 == 0: print i else: print t[i % 3]