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