s = str(input())
n = len(s)

w = 0
for i in range(n):
  if s[i] == 'o':
    w += 1
    
if w + (15 - n) >= 8:
  print('YES')
else:
  print('NO') s = str(input()) s str(input()) str input() input n = len(s) n len(s) len s w = 0 w 0 for i in range(n):
  if s[i] == 'o':
    w += 1
     i range(n) range n if s[i] == 'o':
    w += 1
     s[i] == 'o' s[i] s i 'o' w += 1 w 1 if w + (15 - n) >= 8:
  print('YES')
else:
  print('NO') w + (15 - n) >= 8 w + (15 - n) w 15 - n 15 n 8 print('YES') print 'YES' print('NO') print 'NO' w += 1 1 w s = str(input()) str(input()) s w = 0 0 w n = len(s) len(s) n
s = str(input())
n = len(s)

w = 0
for i in range(n):
  if s[i] == 'o':
    w += 1
    
if w + (15 - n) >= 8:
  print('YES')
else:
  print('NO')