import math
import sys
S=input()
count=0
for i in range(len(S)):
    if S[i]=="o":
        count+=1
    if count>=8:
        print("YES")
        sys.exit()
if len(S)<15:
    count+=15-len(S)
    if count>=8:
        print("YES")
        sys.exit()
print("NO") import math math import sys sys S=input() S input() input count=0 count 0 for i in range(len(S)):
    if S[i]=="o":
        count+=1
    if count>=8:
        print("YES")
        sys.exit() i range(len(S)) range len(S) len S if S[i]=="o":
        count+=1
     S[i]=="o" S[i] S i "o" count+=1 count 1 if count>=8:
        print("YES")
        sys.exit() count>=8 count 8 print("YES") print "YES" sys.exit() sys.exit sys exit if len(S)<15:
    count+=15-len(S)
    if count>=8:
        print("YES")
        sys.exit() len(S)<15 len(S) len S 15 count+=15-len(S) count 15-len(S) 15 len(S) len S if count>=8:
        print("YES")
        sys.exit() count>=8 count 8 print("YES") print "YES" sys.exit() sys.exit sys exit print("NO") print "NO" count+=1 1 count S=input() input() S count+=15-len(S) 15-len(S) count count=0 0 count
import math
import sys
S=input()
count=0
for i in range(len(S)):
    if S[i]=="o":
        count+=1
    if count>=8:
        print("YES")
        sys.exit()
if len(S)<15:
    count+=15-len(S)
    if count>=8:
        print("YES")
        sys.exit()
print("NO")