#input
S = input()

#slice
Batsu = int(S.count('x'))
Nokori = 15 - Batsu

#output
if Batsu >= 8:
	print("NO")
else:
	print("YES") S = input() S input() input Batsu = int(S.count('x')) Batsu int(S.count('x')) int S.count('x') S.count S count 'x' Nokori = 15 - Batsu Nokori 15 - Batsu 15 Batsu if Batsu >= 8:
	print("NO")
else:
	print("YES") Batsu >= 8 Batsu 8 print("NO") print "NO" print("YES") print "YES" Nokori = 15 - Batsu 15 - Batsu Nokori Batsu = int(S.count('x')) int(S.count('x')) Batsu S = input() input() S
#input
S = input()

#slice
Batsu = int(S.count('x'))
Nokori = 15 - Batsu

#output
if Batsu >= 8:
	print("NO")
else:
	print("YES")