S = input()
cnt = 0
for i in range(0, len(S)):
	if S[i] == 'x': cnt += 1
if cnt < 8: print('YES')
else: print('NO') S = input() S input() input cnt = 0 cnt 0 for i in range(0, len(S)):
	if S[i] == 'x': cnt += 1 i range(0, len(S)) range 0 len(S) len S if S[i] == 'x': cnt +=  S[i] == 'x' S[i] S i 'x' if cnt < 8: print('YES')
else: print('NO') cnt < 8 cnt 8 S = input() input() S cnt = 0 0 cnt
S = input()
cnt = 0
for i in range(0, len(S)):
	if S[i] == 'x': cnt += 1
if cnt < 8: print('YES')
else: print('NO')