S = input()
loseCount = 0

for n in range(len(S)):
    if S[n] == "x":
        loseCount = loseCount + 1

if loseCount >= 8:
    print("NO")
else:
    print("YES") S = input() S input() input loseCount = 0 loseCount 0 for n in range(len(S)):
    if S[n] == "x":
        loseCount = loseCount + 1 n range(len(S)) range len(S) len S if S[n] == "x":
        loseCount = loseCount + 1 S[n] == "x" S[n] S n "x" loseCount = loseCount + 1 loseCount loseCount + 1 loseCount 1 if loseCount >= 8:
    print("NO")
else:
    print("YES") loseCount >= 8 loseCount 8 print("NO") print "NO" print("YES") print "YES" S = input() input() S loseCount = loseCount + 1 loseCount + 1 loseCount loseCount = 0 0 loseCount
S = input()
loseCount = 0

for n in range(len(S)):
    if S[n] == "x":
        loseCount = loseCount + 1

if loseCount >= 8:
    print("NO")
else:
    print("YES")