S=list(input())
sum=15-len(S)
S.sort()
for i in S:
    if i=='o':
        sum+=1
    if sum>=8:
        print("YES")
        break
    if i=='x':
        print("NO")
        break S=list(input()) S list(input()) list input() input sum=15-len(S) sum 15-len(S) 15 len(S) len S S.sort() S.sort S sort for i in S:
    if i=='o':
        sum+=1
    if sum>=8:
        print("YES")
        break
    if i=='x':
        print("NO")
        break i S if i=='o':
        sum+=1
     i=='o' i 'o' sum+=1 sum 1 if sum>=8:
        print("YES")
        break
     sum>=8 sum 8 print("YES") print "YES" break if i=='x':
        print("NO")
        break i=='x' i 'x' print("NO") print "NO" break sum=15-len(S) 15-len(S) sum sum+=1 1 sum S=list(input()) list(input()) S
S=list(input())
sum=15-len(S)
S.sort()
for i in S:
    if i=='o':
        sum+=1
    if sum>=8:
        print("YES")
        break
    if i=='x':
        print("NO")
        break