S=input()
print("YNEOS"[S.count("o")+15-len(S)<8::2]) S=input() S input() input print("YNEOS"[S.count("o")+15-len(S)<8::2]) print "YNEOS"[S.count("o")+15-len(S)<8::2] "YNEOS" S.count("o")+15-len(S)<8::2 S.count("o")+15-len(S)<8 S.count("o")+15-len(S) S.count("o")+15 S.count("o") S.count S count "o" 15 len(S) len S 8 2 S=input() input() S
S=input()
print("YNEOS"[S.count("o")+15-len(S)<8::2])