s = input()

c = 0
for t in s:
    if(t == 'o'):c+=1

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

c = 0
for t in s:
    if(t == 'o'):c+=1

if(c >= 8-15+len(s)):print('YES')
else:print('NO')
