S = input()
win = 0
for c in S:
    if c == 'o':
        win += 1

if win + (15 - len(S)) < 8:
    print('NO')
else:
    print('YES') S = input() S input() input win = 0 win 0 for c in S:
    if c == 'o':
        win += 1 c S if c == 'o':
        win += 1 c == 'o' c 'o' win += 1 win 1 if win + (15 - len(S)) < 8:
    print('NO')
else:
    print('YES') win + (15 - len(S)) < 8 win + (15 - len(S)) win 15 - len(S) 15 len(S) len S 8 print('NO') print 'NO' print('YES') print 'YES' win += 1 1 win win = 0 0 win S = input() input() S
S = input()
win = 0
for c in S:
    if c == 'o':
        win += 1

if win + (15 - len(S)) < 8:
    print('NO')
else:
    print('YES')