S = input()

xCount = 0
for s in S:
    if s == "x":
        xCount += 1

if xCount >= 8:
    print("NO")
else:
    print("YES") S = input() S input() input xCount = 0 xCount 0 for s in S:
    if s == "x":
        xCount += 1 s S if s == "x":
        xCount += 1 s == "x" s "x" xCount += 1 xCount 1 if xCount >= 8:
    print("NO")
else:
    print("YES") xCount >= 8 xCount 8 print("NO") print "NO" print("YES") print "YES" xCount += 1 1 xCount xCount = 0 0 xCount S = input() input() S
S = input()

xCount = 0
for s in S:
    if s == "x":
        xCount += 1

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