S = input()

print(["YES", "NO"][not(8 <= ((15 - len(S)) + S.count("o")))]) S = input() S input() input print(["YES", "NO"][not(8 <= ((15 - len(S)) + S.count("o")))]) print ["YES", "NO"][not(8 <= ((15 - len(S)) + S.count("o")))] ["YES", "NO"] "YES" "NO" not(8 <= ((15 - len(S)) + S.count("o"))) 8 <= ((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" S = input() input() S
S = input()

print(["YES", "NO"][not(8 <= ((15 - len(S)) + S.count("o")))])
