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