s = input()
ans = "NO"
if s.count("x") >= 8: ans = "NO"
elif 8 - s.count("o") <= 15 - len(s): ans = "YES"
print(ans) s = input() s input() input ans = "NO" ans "NO" if s.count("x") >= 8: ans = "NO"
elif 8 - s.count("o") <= 15 - len(s): ans = "YES" s.count("x") >= 8 s.count("x") s.count s count "x" 8 elif 8 - s.count("o") <= 15 - len(s): ans = "YES" 8 - s.count("o") <= 15 - len(s) 8 - s.count("o") 8 s.count("o") s.count s count "o" 15 - len(s) 15 len(s) len s print(ans) print ans ans = "NO" "NO" ans s = input() input() s
s = input()
ans = "NO"
if s.count("x") >= 8: ans = "NO"
elif 8 - s.count("o") <= 15 - len(s): ans = "YES"
print(ans)