s = raw_input()
c = 0
for ch in s:
  if ch == 'x':
    c += 1
if c <= 7:
  print 'YES'
else:
  print 'NO' s = raw_input() s raw_input() raw_input c = 0 c 0 for ch in s:
  if ch == 'x':
    c += 1 ch s if ch == 'x':
    c += 1 ch == 'x' ch 'x' c += 1 c 1 if c <= 7:
  print 'YES'
else:
  print 'NO' c <= 7 c 7 print print s = raw_input() raw_input() s c += 1 1 c c = 0 0 c
s = raw_input()
c = 0
for ch in s:
  if ch == 'x':
    c += 1
if c <= 7:
  print 'YES'
else:
  print 'NO'