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