s = input()
k = len(s)
potential_win = 15 - k
win_cnt = s.count("o")
if win_cnt + potential_win >= 8:
    print("YES")
else:
    print("NO") s = input() s input() input k = len(s) k len(s) len s potential_win = 15 - k potential_win 15 - k 15 k win_cnt = s.count("o") win_cnt s.count("o") s.count s count "o" if win_cnt + potential_win >= 8:
    print("YES")
else:
    print("NO") win_cnt + potential_win >= 8 win_cnt + potential_win win_cnt potential_win 8 print("YES") print "YES" print("NO") print "NO" potential_win = 15 - k 15 - k potential_win win_cnt = s.count("o") s.count("o") win_cnt s = input() input() s k = len(s) len(s) k
s = input()
k = len(s)
potential_win = 15 - k
win_cnt = s.count("o")
if win_cnt + potential_win >= 8:
    print("YES")
else:
    print("NO")