s=input()
n=len(s)
tmp=0
for i in range(n):
    if s[i]!="o":
        tmp+=1
if tmp>7:
    print("NO")
else:
    print("YES") s=input() s input() input n=len(s) n len(s) len s tmp=0 tmp 0 for i in range(n):
    if s[i]!="o":
        tmp+=1 i range(n) range n if s[i]!="o":
        tmp+=1 s[i]!="o" s[i] s i "o" tmp+=1 tmp 1 if tmp>7:
    print("NO")
else:
    print("YES") tmp>7 tmp 7 print("NO") print "NO" print("YES") print "YES" tmp+=1 1 tmp tmp=0 0 tmp s=input() input() s n=len(s) len(s) n
s=input()
n=len(s)
tmp=0
for i in range(n):
    if s[i]!="o":
        tmp+=1
if tmp>7:
    print("NO")
else:
    print("YES")