S = input()

cnt = 0
for c in S:
  if c == 'x':
    cnt += 1
    
print('NO' if cnt > 7 else 'YES') S = input() S input() input cnt = 0 cnt 0 for c in S:
  if c == 'x':
    cnt += 1
     c S if c == 'x':
    cnt += 1
     c == 'x' c 'x' cnt += 1 cnt 1 print('NO' if cnt > 7 else 'YES') print 'NO' if cnt > 7 else 'YES' cnt > 7 cnt 7 'NO' 'YES' S = input() input() S cnt = 0 0 cnt cnt += 1 1 cnt
S = input()

cnt = 0
for c in S:
  if c == 'x':
    cnt += 1
    
print('NO' if cnt > 7 else 'YES')