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