s = input()
w=0
l=0
for x in s:
    if x is 'o':
        w+=1
    else:
        l+=1
if w+15-l-w>=8:
    print("YES")
else:
    print("NO") s = input() s input() input w=0 w 0 l=0 l 0 for x in s:
    if x is 'o':
        w+=1
    else:
        l+=1 x s if x is 'o':
        w+=1
    else:
        l+=1 x is 'o' x 'o' w+=1 w 1 l+=1 l 1 if w+15-l-w>=8:
    print("YES")
else:
    print("NO") w+15-l-w>=8 w+15-l-w w+15-l w+15 w 15 l w 8 print("YES") print "YES" print("NO") print "NO" l+=1 1 l w+=1 1 w l=0 0 l s = input() input() s w=0 0 w
s = input()
w=0
l=0
for x in s:
    if x is 'o':
        w+=1
    else:
        l+=1
if w+15-l-w>=8:
    print("YES")
else:
    print("NO")