# 参考: https://qiita.com/y-tsutsu/items/aa7e8e809d6ac167d6a1

import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

# 多次元配列
# dp = [[0] * 3 for _ in range(5)]

# 入力を受け取る
s = input()

l = len(s)

w = len(list(filter(lambda c: c == 'o', s)))

print('YES' if 15 - l + w >= 8 else 'NO') import sys sys import heapq, math heapq math from itertools import zip_longest, permutations, combinations, combinations_with_replacement from itertools import accumulate, dropwhile, takewhile, groupby from functools import lru_cache from copy import deepcopy s = input() s input() input l = len(s) l len(s) len s w = len(list(filter(lambda c: c == 'o', s))) w len(list(filter(lambda c: c == 'o', s))) len list(filter(lambda c: c == 'o', s)) list filter(lambda c: c == 'o', s) filter lambda c: c == 'o' c == 'o' c 'o' c s print('YES' if 15 - l + w >= 8 else 'NO') print 'YES' if 15 - l + w >= 8 else 'NO' 15 - l + w >= 8 15 - l + w 15 - l 15 l w 8 'YES' 'NO' w = len(list(filter(lambda c: c == 'o', s))) len(list(filter(lambda c: c == 'o', s))) w s = input() input() s l = len(s) len(s) l
# 参考: https://qiita.com/y-tsutsu/items/aa7e8e809d6ac167d6a1

import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

# 多次元配列
# dp = [[0] * 3 for _ in range(5)]

# 入力を受け取る
s = input()

l = len(s)

w = len(list(filter(lambda c: c == 'o', s)))

print('YES' if 15 - l + w >= 8 else 'NO')
