import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    s = input().rstrip()
    k = len(s)
    win = s.count("o")
    print("YES" if 15 - k >= 8 - win else "NO")


if __name__ == '__main__':
    resolve() import sys sys sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline f_inf = float('inf') f_inf float('inf') float 'inf' mod = 10 ** 9 + 7 mod 10 ** 9 + 7 10 ** 9 10 9 7 def resolve():
    s = input().rstrip()
    k = len(s)
    win = s.count("o")
    print("YES" if 15 - k >= 8 - win else "NO") resolve s = input().rstrip() s input().rstrip() ().rstrip () input rstrip k = len(s) k len(s) len s win = s.count("o") win s.count("o") s.count s count "o" print("YES" if 15 - k >= 8 - win else "NO") print "YES" if 15 - k >= 8 - win else "NO" 15 - k >= 8 - win 15 - k 15 k 8 - win 8 win "YES" "NO" if __name__ == '__main__':
    resolve() __name__ == '__main__' __name__ '__main__' resolve() resolve mod = 10 ** 9 + 7 10 ** 9 + 7 mod f_inf = float('inf') float('inf') f_inf def resolve():
    s = input().rstrip()
    k = len(s)
    win = s.count("o")
    print("YES" if 15 - k >= 8 - win else "NO") def resolve():
    s = input().rstrip()
    k = len(s)
    win = s.count("o")
    print("YES" if 15 - k >= 8 - win else "NO") resolve input = sys.stdin.readline sys.stdin.readline input
import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    s = input().rstrip()
    k = len(s)
    win = s.count("o")
    print("YES" if 15 - k >= 8 - win else "NO")


if __name__ == '__main__':
    resolve()
