A = input()
count = 0
for i in A:
  if i == 'o':
    count += 1
b = len(A) - count
if 15 - b > 7:
  print('YES')
else:
  print('NO') A = input() A input() input count = 0 count 0 for i in A:
  if i == 'o':
    count += 1 i A if i == 'o':
    count += 1 i == 'o' i 'o' count += 1 count 1 b = len(A) - count b len(A) - count len(A) len A count if 15 - b > 7:
  print('YES')
else:
  print('NO') 15 - b > 7 15 - b 15 b 7 print('YES') print 'YES' print('NO') print 'NO' count = 0 0 count A = input() input() A count += 1 1 count b = len(A) - count len(A) - count b
A = input()
count = 0
for i in A:
  if i == 'o':
    count += 1
b = len(A) - count
if 15 - b > 7:
  print('YES')
else:
  print('NO')