S=list(input())
a=0
for i in range(len(S)):
    if S[i]=='x':
        a+=1
if a<=7:
    print('YES')
else:
    print('NO') S=list(input()) S list(input()) list input() input a=0 a 0 for i in range(len(S)):
    if S[i]=='x':
        a+=1 i range(len(S)) range len(S) len S if S[i]=='x':
        a+=1 S[i]=='x' S[i] S i 'x' a+=1 a 1 if a<=7:
    print('YES')
else:
    print('NO') a<=7 a 7 print('YES') print 'YES' print('NO') print 'NO' a+=1 1 a a=0 0 a S=list(input()) list(input()) S
S=list(input())
a=0
for i in range(len(S)):
    if S[i]=='x':
        a+=1
if a<=7:
    print('YES')
else:
    print('NO')