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