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