
s = input()
i = 0
win = 0
lose = 0

for i in range(len(s)):
    if s[i] == "o":
        win  += 1
    else:
        lose += 1

if win + (15 - len(s)) >= 8:
    print("YES")
else:
    print("NO") s = input() s input() input i = 0 i 0 win = 0 win 0 lose = 0 lose 0 for i in range(len(s)):
    if s[i] == "o":
        win  += 1
    else:
        lose += 1 i range(len(s)) range len(s) len s if s[i] == "o":
        win  += 1
    else:
        lose += 1 s[i] == "o" s[i] s i "o" win  += 1 win 1 lose += 1 lose 1 if win + (15 - len(s)) >= 8:
    print("YES")
else:
    print("NO") win + (15 - len(s)) >= 8 win + (15 - len(s)) win 15 - len(s) 15 len(s) len s 8 print("YES") print "YES" print("NO") print "NO" win  += 1 1 win win = 0 0 win s = input() input() s i = 0 0 i lose = 0 0 lose lose += 1 1 lose

s = input()
i = 0
win = 0
lose = 0

for i in range(len(s)):
    if s[i] == "o":
        win  += 1
    else:
        lose += 1

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