

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    S=input()
    N=len(S)
    ans=15-N+S.count("o")
    if ans>=8:
        print("YES")
    else:
        print("NO")

main() def I(): return int(input()) I def MI(): return map(int, input().split()) MI def LI(): return list(map(int, input().split())) LI def main():
    mod=10**9+7
    S=input()
    N=len(S)
    ans=15-N+S.count("o")
    if ans>=8:
        print("YES")
    else:
        print("NO") main mod=10**9+7 mod 10**9+7 10**9 10 9 7 S=input() S input() input N=len(S) N len(S) len S ans=15-N+S.count("o") ans 15-N+S.count("o") 15-N 15 N S.count("o") S.count S count "o" if ans>=8:
        print("YES")
    else:
        print("NO") ans>=8 ans 8 print("YES") print "YES" print("NO") print "NO" main() main def LI(): return list(map(int, input().split())) def LI(): return list(map(int, input().split())) LI def I(): return int(input()) def I(): return int(input()) I def MI(): return map(int, input().split()) def MI(): return map(int, input().split()) MI def main():
    mod=10**9+7
    S=input()
    N=len(S)
    ans=15-N+S.count("o")
    if ans>=8:
        print("YES")
    else:
        print("NO") def main():
    mod=10**9+7
    S=input()
    N=len(S)
    ans=15-N+S.count("o")
    if ans>=8:
        print("YES")
    else:
        print("NO") main


def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    S=input()
    N=len(S)
    ans=15-N+S.count("o")
    if ans>=8:
        print("YES")
    else:
        print("NO")

main()
