s=input() o=s.count("o") x=s.count("x") for c in s: print(o/(o+x)) o-=c=="o" x-=c=="x"