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