s = input()
w = 0
for i in range(len(s)):
    if s[i] == 'o':
        w += 1

w += 15 - len(s)
if 8 <= w:
    print('YES')
else:
    print('NO') s = input() s input() input w = 0 w 0 for i in range(len(s)):
    if s[i] == 'o':
        w += 1 i range(len(s)) range len(s) len s if s[i] == 'o':
        w += 1 s[i] == 'o' s[i] s i 'o' w += 1 w 1 w += 15 - len(s) w 15 - len(s) 15 len(s) len s if 8 <= w:
    print('YES')
else:
    print('NO') 8 <= w 8 w print('YES') print 'YES' print('NO') print 'NO' w = 0 0 w w += 1 1 w w += 15 - len(s) 15 - len(s) w s = input() input() s
s = input()
w = 0
for i in range(len(s)):
    if s[i] == 'o':
        w += 1

w += 15 - len(s)
if 8 <= w:
    print('YES')
else:
    print('NO')
