# -*- coding: utf-8 -*-

#k回対戦済

S = input()

#リストに変換
S_list = []
for i in range(0,len(S)):
    S_list.append(S[i])
#print(S_list)

#勝ち数
Nvic = S_list.count("o")

if Nvic + 15 - len(S) < 8:
    print("NO")
else:
    print("YES") S = input() S input() input S_list = [] S_list [] for i in range(0,len(S)):
    S_list.append(S[i])
#print(S_list)

#勝ち数 i range(0,len(S)) range 0 len(S) len S S_list.append(S[i]) S_list.append S_list append S[i] S i Nvic = S_list.count("o") Nvic S_list.count("o") S_list.count S_list count "o" if Nvic + 15 - len(S) < 8:
    print("NO")
else:
    print("YES") Nvic + 15 - len(S) < 8 Nvic + 15 - len(S) Nvic + 15 Nvic 15 len(S) len S 8 print("NO") print "NO" print("YES") print "YES" S_list = [] [] S_list Nvic = S_list.count("o") S_list.count("o") Nvic S = input() input() S
# -*- coding: utf-8 -*-

#k回対戦済

S = input()

#リストに変換
S_list = []
for i in range(0,len(S)):
    S_list.append(S[i])
#print(S_list)

#勝ち数
Nvic = S_list.count("o")

if Nvic + 15 - len(S) < 8:
    print("NO")
else:
    print("YES")
