s=input()
S=list(s)
k=len(S)
count=0
for i in range(k):
    if S[i]=='o':
        count+=1
    else:
        continue
if 15-k+count>7:
    print('YES')
else:
    print('NO') s=input() s input() input S=list(s) S list(s) list s k=len(S) k len(S) len S count=0 count 0 for i in range(k):
    if S[i]=='o':
        count+=1
    else:
        continue i range(k) range k if S[i]=='o':
        count+=1
    else:
        continue S[i]=='o' S[i] S i 'o' count+=1 count 1 continue if 15-k+count>7:
    print('YES')
else:
    print('NO') 15-k+count>7 15-k+count 15-k 15 k count 7 print('YES') print 'YES' print('NO') print 'NO' count=0 0 count s=input() input() s count+=1 1 count k=len(S) len(S) k S=list(s) list(s) S
s=input()
S=list(s)
k=len(S)
count=0
for i in range(k):
    if S[i]=='o':
        count+=1
    else:
        continue
if 15-k+count>7:
    print('YES')
else:
    print('NO')