s = str(input())

l_cnt = s.count('x')
if l_cnt <= 7:
  print('YES')
else:
  print('NO') s = str(input()) s str(input()) str input() input l_cnt = s.count('x') l_cnt s.count('x') s.count s count 'x' if l_cnt <= 7:
  print('YES')
else:
  print('NO') l_cnt <= 7 l_cnt 7 print('YES') print 'YES' print('NO') print 'NO' l_cnt = s.count('x') s.count('x') l_cnt s = str(input()) str(input()) s
s = str(input())

l_cnt = s.count('x')
if l_cnt <= 7:
  print('YES')
else:
  print('NO')