s = input()
cnt = 0
for i in s:
    if i == 'o':
        cnt += 1

print("YES" if cnt + (15 - len(s)) >= 8 else "NO") s = input() s input() input cnt = 0 cnt 0 for i in s:
    if i == 'o':
        cnt += 1 i s if i == 'o':
        cnt += 1 i == 'o' i 'o' cnt += 1 cnt 1 print("YES" if cnt + (15 - len(s)) >= 8 else "NO") print "YES" if cnt + (15 - len(s)) >= 8 else "NO" cnt + (15 - len(s)) >= 8 cnt + (15 - len(s)) cnt 15 - len(s) 15 len(s) len s 8 "YES" "NO" cnt += 1 1 cnt cnt = 0 0 cnt s = input() input() s
s = input()
cnt = 0
for i in s:
    if i == 'o':
        cnt += 1

print("YES" if cnt + (15 - len(s)) >= 8 else "NO")
