s = input()

l = len(s)
temp = 0
for i in s:
	if i =="o":
		temp+=1

if (8-temp) <= 15-l:
	print("YES")
else:
	print("NO") s = input() s input() input l = len(s) l len(s) len s temp = 0 temp 0 for i in s:
	if i =="o":
		temp+=1 i s if i =="o":
		temp+=1 i =="o" i "o" temp+=1 temp 1 if (8-temp) <= 15-l:
	print("YES")
else:
	print("NO") (8-temp) <= 15-l 8-temp 8 temp 15-l 15 l print("YES") print "YES" print("NO") print "NO" temp+=1 1 temp temp = 0 0 temp l = len(s) len(s) l s = input() input() s
s = input()

l = len(s)
temp = 0
for i in s:
	if i =="o":
		temp+=1

if (8-temp) <= 15-l:
	print("YES")
else:
	print("NO")