s = input()
print("YES" if 15 - len(s) + s.count("o") >= 8 else "NO") s = input() s input() input print("YES" if 15 - len(s) + s.count("o") >= 8 else "NO") print "YES" if 15 - len(s) + s.count("o") >= 8 else "NO" 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 "YES" "NO" s = input() input() s
s = input()
print("YES" if 15 - len(s) + s.count("o") >= 8 else "NO")