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