S = input()
N = len(S)
if S.count("x") >= 8:
  print("NO")
else:
  print("YES") S = input() S input() input N = len(S) N len(S) len S if S.count("x") >= 8:
  print("NO")
else:
  print("YES") S.count("x") >= 8 S.count("x") S.count S count "x" 8 print("NO") print "NO" print("YES") print "YES" S = input() input() S N = len(S) len(S) N
S = input()
N = len(S)
if S.count("x") >= 8:
  print("NO")
else:
  print("YES")