c=list(input())
if c.count('x')>=8:
  print('NO')
else:
  print('YES') c=list(input()) c list(input()) list input() input if c.count('x')>=8:
  print('NO')
else:
  print('YES') c.count('x')>=8 c.count('x') c.count c count 'x' 8 print('NO') print 'NO' print('YES') print 'YES' c=list(input()) list(input()) c
c=list(input())
if c.count('x')>=8:
  print('NO')
else:
  print('YES')