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