s = input()
k = len(s)

res = 15 - k

must = 8 - res

win = s.count("o")

if win < must:
	print("NO")
else:
	print("YES") s = input() s input() input k = len(s) k len(s) len s res = 15 - k res 15 - k 15 k must = 8 - res must 8 - res 8 res win = s.count("o") win s.count("o") s.count s count "o" if win < must:
	print("NO")
else:
	print("YES") win < must win must print("NO") print "NO" print("YES") print "YES" must = 8 - res 8 - res must win = s.count("o") s.count("o") win res = 15 - k 15 - k res s = input() input() s k = len(s) len(s) k
s = input()
k = len(s)

res = 15 - k

must = 8 - res

win = s.count("o")

if win < must:
	print("NO")
else:
	print("YES")