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