s=list(input())
cnt=0
for i in range(len(s)):
    if s[i]=="x":
        cnt+=1
if cnt > 7:
    print("NO")
else:
    print("YES") s=list(input()) s list(input()) list input() input cnt=0 cnt 0 for i in range(len(s)):
    if s[i]=="x":
        cnt+=1 i range(len(s)) range len(s) len s if s[i]=="x":
        cnt+=1 s[i]=="x" s[i] s i "x" cnt+=1 cnt 1 if cnt > 7:
    print("NO")
else:
    print("YES") cnt > 7 cnt 7 print("NO") print "NO" print("YES") print "YES" cnt+=1 1 cnt s=list(input()) list(input()) s cnt=0 0 cnt
s=list(input())
cnt=0
for i in range(len(s)):
    if s[i]=="x":
        cnt+=1
if cnt > 7:
    print("NO")
else:
    print("YES")
