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