import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

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

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