s=input()
k=len(s)
j=s.count("o")
if 15-k+j>=8:
  print("YES")
else:
  print("NO") s=input() s input() input k=len(s) k len(s) len s j=s.count("o") j s.count("o") s.count s count "o" if 15-k+j>=8:
  print("YES")
else:
  print("NO") 15-k+j>=8 15-k+j 15-k 15 k j 8 print("YES") print "YES" print("NO") print "NO" s=input() input() s j=s.count("o") s.count("o") j k=len(s) len(s) k
s=input()
k=len(s)
j=s.count("o")
if 15-k+j>=8:
  print("YES")
else:
  print("NO")