N = int(input()) A = [i for i in range(N)] A.reverse() z = A.pop() flag = "a" if A: flag ="ab" a = A.pop() print(a) if A: flag = "abc" b = A.pop() print(b) if A: flag = "abcd" c = A.pop() print("Fizz") d = b + c if A: A.reverse() A = A + [N] elif flag == "abc": print("Fizz") else: print(len(flag)) for n in A: r = "" if n == (n//c) * c: r = r + "Fizz" if n == (n//d) * d: r = r + "Buzz" if r: print(r) else: print(n)