s = input()
nokori = 15 -len(s)
should = 8 -nokori 
num = s.count("o")
if num >= should:
  print("YES")
else:
  print("NO") s = input() s input() input nokori = 15 -len(s) nokori 15 -len(s) 15 len(s) len s should = 8 -nokori should 8 -nokori 8 nokori num = s.count("o") num s.count("o") s.count s count "o" if num >= should:
  print("YES")
else:
  print("NO") num >= should num should print("YES") print "YES" print("NO") print "NO" s = input() input() s nokori = 15 -len(s) 15 -len(s) nokori num = s.count("o") s.count("o") num should = 8 -nokori 8 -nokori should
s = input()
nokori = 15 -len(s)
should = 8 -nokori 
num = s.count("o")
if num >= should:
  print("YES")
else:
  print("NO")