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