string="" while True: N=int(input()) if N=="" or N==0:break if N%3==0:string="Fizz" if N%5==0:string+="Buzz" print(string if string!="" else N) string=""