N=raw_input() for a in range(1, int(N)+1): if a%3==0 and a%5==0: print 'FizzBuzz' elif a%5==0: print 'Buzz' elif a%3==0: print 'Fizz' else: print(a)