s = list(input())
counter = 0
k = len(s)
for i in range(k):
    if s[i] == "o":
        counter += 1
if counter+(15-k) >= 8:
    print("YES")
else:
    print("NO") s = list(input()) s list(input()) list input() input counter = 0 counter 0 k = len(s) k len(s) len s for i in range(k):
    if s[i] == "o":
        counter += 1 i range(k) range k if s[i] == "o":
        counter += 1 s[i] == "o" s[i] s i "o" counter += 1 counter 1 if counter+(15-k) >= 8:
    print("YES")
else:
    print("NO") counter+(15-k) >= 8 counter+(15-k) counter 15-k 15 k 8 print("YES") print "YES" print("NO") print "NO" counter = 0 0 counter s = list(input()) list(input()) s counter += 1 1 counter k = len(s) len(s) k
s = list(input())
counter = 0
k = len(s)
for i in range(k):
    if s[i] == "o":
        counter += 1
if counter+(15-k) >= 8:
    print("YES")
else:
    print("NO")