# coding: utf-8 n = int(input()) for i in range(1, n + 1): f = (i % 3 == 0) b = (i % 5 == 0) print("Fizz" * f + "Buzz" * b + str(i) * (1 - max(f,b)))