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