s = input()
remain=15-len(s)

maru=0
for i in s:
    if i =='o':
        maru+=1
        
if remain >= 8-maru:
    print('YES')
else:
    print('NO') s = input() s input() input remain=15-len(s) remain 15-len(s) 15 len(s) len s maru=0 maru 0 for i in s:
    if i =='o':
        maru+=1
         i s if i =='o':
        maru+=1
         i =='o' i 'o' maru+=1 maru 1 if remain >= 8-maru:
    print('YES')
else:
    print('NO') remain >= 8-maru remain 8-maru 8 maru print('YES') print 'YES' print('NO') print 'NO' maru=0 0 maru s = input() input() s remain=15-len(s) 15-len(s) remain maru+=1 1 maru
s = input()
remain=15-len(s)

maru=0
for i in s:
    if i =='o':
        maru+=1
        
if remain >= 8-maru:
    print('YES')
else:
    print('NO')
