S=list(input())
k=len(S)
if S.count("o")+15-k>=8:
    print("YES")
else:
    print("NO") S=list(input()) S list(input()) list input() input k=len(S) k len(S) len S if S.count("o")+15-k>=8:
    print("YES")
else:
    print("NO") S.count("o")+15-k>=8 S.count("o")+15-k S.count("o")+15 S.count("o") S.count S count "o" 15 k 8 print("YES") print "YES" print("NO") print "NO" k=len(S) len(S) k S=list(input()) list(input()) S
S=list(input())
k=len(S)
if S.count("o")+15-k>=8:
    print("YES")
else:
    print("NO")