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