s = input()
if 15-s.count("x")<8: print("NO")
else: print("YES") s = input() s input() input if 15-s.count("x")<8: print("NO")
else: print("YES") 15-s.count("x")<8 15-s.count("x") 15 s.count("x") s.count s count "x" 8 s = input() input() s
s = input()
if 15-s.count("x")<8: print("NO")
else: print("YES")