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