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