import sys def resolve(in_): N = int(next(in_)) for n in range(1, N + 1): if not n % 3 and not n % 5: yield 'FizzBuzz' elif not n % 3: yield 'Fizz' elif not n % 5: yield 'Buzz' else: yield str(n) def main(): for ans in resolve(sys.stdin.buffer): print(ans) if __name__ == '__main__': main()