# import sys
matches = input()
matches_list = list(matches)
# o = 0
x = 0
for i in matches_list:
  # if i == 'o':
  #   o += 1
  if i == 'x':
    x += 1

if x >= 8:
  print('NO')
else:
  print('YES')
  # sys.exit()

# print(x, matches_list) matches = input() matches input() input matches_list = list(matches) matches_list list(matches) list matches x = 0 x 0 for i in matches_list:
  # if i == 'o':
  #   o += 1
  if i == 'x':
    x += 1 i matches_list if i == 'x':
    x += 1 i == 'x' i 'x' x += 1 x 1 if x >= 8:
  print('NO')
else:
  print('YES')
  # sys.exit()

# print(x, matches_list) x >= 8 x 8 print('NO') print 'NO' print('YES') print 'YES' matches = input() input() matches matches_list = list(matches) list(matches) matches_list x = 0 0 x x += 1 1 x
# import sys
matches = input()
matches_list = list(matches)
# o = 0
x = 0
for i in matches_list:
  # if i == 'o':
  #   o += 1
  if i == 'x':
    x += 1

if x >= 8:
  print('NO')
else:
  print('YES')
  # sys.exit()

# print(x, matches_list)