S = input()

result = (15 - len(S) + S.count("o")) >= 8

if result:
    print("YES")
else:
    print("NO") S = input() S input() input result = (15 - len(S) + S.count("o")) >= 8 result (15 - len(S) + S.count("o")) >= 8 15 - len(S) + S.count("o") 15 - len(S) 15 len(S) len S S.count("o") S.count S count "o" 8 if result:
    print("YES")
else:
    print("NO") result print("YES") print "YES" print("NO") print "NO" S = input() input() S result = (15 - len(S) + S.count("o")) >= 8 (15 - len(S) + S.count("o")) >= 8 result
S = input()

result = (15 - len(S) + S.count("o")) >= 8

if result:
    print("YES")
else:
    print("NO")
