s = input()

k = len(s)
win = 0

for i in range(k):
	if s[i] == 'o':
		win += 1

if k < 7:
	print('YES')
elif k >= 8:
	if win + (15 - k) >= 8:
		print('YES')
	else:
		print('NO') s = input() s input() input k = len(s) k len(s) len s win = 0 win 0 for i in range(k):
	if s[i] == 'o':
		win += 1 i range(k) range k if s[i] == 'o':
		win += 1 s[i] == 'o' s[i] s i 'o' win += 1 win 1 if k < 7:
	print('YES')
elif k >= 8:
	if win + (15 - k) >= 8:
		print('YES')
	else:
		print('NO') k < 7 k 7 print('YES') print 'YES' elif k >= 8:
	if win + (15 - k) >= 8:
		print('YES')
	else:
		print('NO') k >= 8 k 8 if win + (15 - k) >= 8:
		print('YES')
	else:
		print('NO') win + (15 - k) >= 8 win + (15 - k) win 15 - k 15 k 8 print('YES') print 'YES' print('NO') print 'NO' k = len(s) len(s) k win = 0 0 win s = input() input() s win += 1 1 win
s = input()

k = len(s)
win = 0

for i in range(k):
	if s[i] == 'o':
		win += 1

if k < 7:
	print('YES')
elif k >= 8:
	if win + (15 - k) >= 8:
		print('YES')
	else:
		print('NO')