S = input()
o, x = 0, 0
for i in range(len(S)):
  if S[i] == 'o':
    o += 1
  elif S[i] == 'x':
    x += 1
if 15 - len(S) + o >= 8:
  print('YES')
else:
  print('NO') S = input() S input() input o, x = 0, 0 o 0 x 0 for i in range(len(S)):
  if S[i] == 'o':
    o += 1
  elif S[i] == 'x':
    x += 1 i range(len(S)) range len(S) len S if S[i] == 'o':
    o += 1
  elif S[i] == 'x':
    x += 1 S[i] == 'o' S[i] S i 'o' o += 1 o 1 elif S[i] == 'x':
    x += 1 S[i] == 'x' S[i] S i 'x' x += 1 x 1 if 15 - len(S) + o >= 8:
  print('YES')
else:
  print('NO') 15 - len(S) + o >= 8 15 - len(S) + o 15 - len(S) 15 len(S) len S o 8 print('YES') print 'YES' print('NO') print 'NO' x = 0, 0 0 x o, x = 0, 0 0 o o += 1 1 o S = input() input() S x += 1 1 x
S = input()
o, x = 0, 0
for i in range(len(S)):
  if S[i] == 'o':
    o += 1
  elif S[i] == 'x':
    x += 1
if 15 - len(S) + o >= 8:
  print('YES')
else:
  print('NO')