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