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