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