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