import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    s=input()
    if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO')

resolve() import sys sys def input(): return sys.stdin.readline().strip() input def resolve():
    s=input()
    if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO') resolve s=input() s input() input if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO') (s.count('o')+15-len(s))>=8 s.count('o')+15-len(s) s.count('o')+15 s.count('o') s.count s count 'o' 15 len(s) len s 8 print('YES') print 'YES' print('NO') print 'NO' resolve() resolve def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input def resolve():
    s=input()
    if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO') def resolve():
    s=input()
    if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO') resolve
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    s=input()
    if (s.count('o')+15-len(s))>=8:
        print('YES')
    else:
        print('NO')

resolve()