s = input()
l = 0
for i in range(len(s)):
  if s[i] == 'x':
    l += 1
if l >= 8:
  print('NO')
else:
  print('YES') s = input() s input() input l = 0 l 0 for i in range(len(s)):
  if s[i] == 'x':
    l += 1 i range(len(s)) range len(s) len s if s[i] == 'x':
    l += 1 s[i] == 'x' s[i] s i 'x' l += 1 l 1 if l >= 8:
  print('NO')
else:
  print('YES') l >= 8 l 8 print('NO') print 'NO' print('YES') print 'YES' s = input() input() s l = 0 0 l l += 1 1 l
s = input()
l = 0
for i in range(len(s)):
  if s[i] == 'x':
    l += 1
if l >= 8:
  print('NO')
else:
  print('YES')