s=input()
k=len(s)
c=s.count("o")
print("YES" if c+15-k>=8 else "NO") s=input() s input() input k=len(s) k len(s) len s c=s.count("o") c s.count("o") s.count s count "o" print("YES" if c+15-k>=8 else "NO") print "YES" if c+15-k>=8 else "NO" c+15-k>=8 c+15-k c+15 c 15 k 8 "YES" "NO" s=input() input() s c=s.count("o") s.count("o") c k=len(s) len(s) k
s=input()
k=len(s)
c=s.count("o")
print("YES" if c+15-k>=8 else "NO")