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