s =input()
if len(s) < 21:
    if (2*s.count('z')) == s.count('o'):
        print("Yes")
    else:
        print("No")
else:
    print("No")
#https://www.hackerearth.com/challenges/competitive/november-circuits-19/algorithm/is-zoo-f6f309e7/#
