s = input()
count = 0
for a in range(len(s)):
    if(s[a] == 'x'):
        count += 1

if(count >= 8):
    print('NO')
else:
    print('YES') s = input() s input() input count = 0 count 0 for a in range(len(s)):
    if(s[a] == 'x'):
        count += 1 a range(len(s)) range len(s) len s if(s[a] == 'x'):
        count += 1 s[a] == 'x' s[a] s a 'x' count += 1 count 1 if(count >= 8):
    print('NO')
else:
    print('YES') count >= 8 count 8 print('NO') print 'NO' print('YES') print 'YES' s = input() input() s count = 0 0 count count += 1 1 count
s = input()
count = 0
for a in range(len(s)):
    if(s[a] == 'x'):
        count += 1

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