s = input()
c = s.count("x")
if c < 8:
  print("YES")
else:
  print("NO") s = input() s input() input c = s.count("x") c s.count("x") s.count s count "x" if c < 8:
  print("YES")
else:
  print("NO") c < 8 c 8 print("YES") print "YES" print("NO") print "NO" c = s.count("x") s.count("x") c s = input() input() s
s = input()
c = s.count("x")
if c < 8:
  print("YES")
else:
  print("NO")