# Problem B - Sumo

# input process
S = input()

# initilization
win_num = 0
rest_num = 15 - len(S)

# count process
for s in S:
    if s=='o':
        win_num+=1

if win_num+rest_num>=8:
    print("YES")
else:
    print("NO") S = input() S input() input win_num = 0 win_num 0 rest_num = 15 - len(S) rest_num 15 - len(S) 15 len(S) len S for s in S:
    if s=='o':
        win_num+=1 s S if s=='o':
        win_num+=1 s=='o' s 'o' win_num+=1 win_num 1 if win_num+rest_num>=8:
    print("YES")
else:
    print("NO") win_num+rest_num>=8 win_num+rest_num win_num rest_num 8 print("YES") print "YES" print("NO") print "NO" S = input() input() S rest_num = 15 - len(S) 15 - len(S) rest_num win_num+=1 1 win_num win_num = 0 0 win_num
# Problem B - Sumo

# input process
S = input()

# initilization
win_num = 0
rest_num = 15 - len(S)

# count process
for s in S:
    if s=='o':
        win_num+=1

if win_num+rest_num>=8:
    print("YES")
else:
    print("NO")
