S = input()

batsu = 0
for i in range(len(S)):
    if S[i] == 'x':
        batsu += 1

if batsu >= 8:
    print('NO')
else:
    print('YES') S = input() S input() input batsu = 0 batsu 0 for i in range(len(S)):
    if S[i] == 'x':
        batsu += 1 i range(len(S)) range len(S) len S if S[i] == 'x':
        batsu += 1 S[i] == 'x' S[i] S i 'x' batsu += 1 batsu 1 if batsu >= 8:
    print('NO')
else:
    print('YES') batsu >= 8 batsu 8 print('NO') print 'NO' print('YES') print 'YES' batsu += 1 1 batsu S = input() input() S batsu = 0 0 batsu
S = input()

batsu = 0
for i in range(len(S)):
    if S[i] == 'x':
        batsu += 1

if batsu >= 8:
    print('NO')
else:
    print('YES')
