N = int(input()) F = ["" for _ in range(3)] B = ["" for _ in range(5)] F[0], B[0] = "Fizz", "Buzz" for i in range(1, N+1): S = F[i%3] + B[i%5] if S == "": print(i) else: print(S)