a=input()
n=a.count("x")
if n>7:
  print("NO")
else:
  print("YES") a=input() a input() input n=a.count("x") n a.count("x") a.count a count "x" if n>7:
  print("NO")
else:
  print("YES") n>7 n 7 print("NO") print "NO" print("YES") print "YES" n=a.count("x") a.count("x") n a=input() input() a
a=input()
n=a.count("x")
if n>7:
  print("NO")
else:
  print("YES")