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