s = input()
s = list(s)


if len(s) < 15:
    for _ in range(15-len(s)):
        s.append('o')

cnt = 0
for r in s:
    if r == 'o':
        cnt += 1

if cnt >= 8:
    print('YES')
else:
    print('NO') s = input() s input() input s = list(s) s list(s) list s if len(s) < 15:
    for _ in range(15-len(s)):
        s.append('o') len(s) < 15 len(s) len s 15 for _ in range(15-len(s)):
        s.append('o') _ range(15-len(s)) range 15-len(s) 15 len(s) len s s.append('o') s.append s append 'o' cnt = 0 cnt 0 for r in s:
    if r == 'o':
        cnt += 1 r s if r == 'o':
        cnt += 1 r == 'o' r 'o' cnt += 1 cnt 1 if cnt >= 8:
    print('YES')
else:
    print('NO') cnt >= 8 cnt 8 print('YES') print 'YES' print('NO') print 'NO' s = input() input() s cnt = 0 0 cnt s = list(s) list(s) s cnt += 1 1 cnt
s = input()
s = list(s)


if len(s) < 15:
    for _ in range(15-len(s)):
        s.append('o')

cnt = 0
for r in s:
    if r == 'o':
        cnt += 1

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