n=input() b3=1 c3=0 b5=1 c5=0 for d in n[::-1]: c3+=int(d)*b3 c3%=3 b3*=4 b3%=3 c5+=int(d)*b5 c5%=5 b5*=4 b5%=5 print([n,"Fizz"*(c3==0)+"Buzz"*(c5==0)][(c3==0) or (c5==0)])