n = int(input()) for i in range(n): j = i+1 txt = "" if j%3 ==0: txt += "Fizz" if j%3 ==0: txt += "Buzz" if txt == "": txt = str(j) print(txt)