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