s=input() safe_pos = s.count("o") trap_pos = s.count("x") for i, room in enumerate(s): print(safe_pos / (safe_pos + trap_pos)) if room == "o": safe_pos -= 1 else: trap_pos -= 1