if __name__ == "__main__": num = 1 str1 = "Fizz" str2 = "Buzz" N = int(input()) while num < N: if num%3==0 and num%5==0: print( str1 + str2 ) num += 1 elif num%3==0: print(str1) num += 1 elif num%5==0: print(str2) num += 1 else: print(num) num += 1