S = input()
x = S.count('x')
if x>=8:
  ans ='NO'
else:
  ans ='YES'


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


print(ans)