#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    S = input()

    win = S.count('o')
    l = len(S)
    if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main() import sys sys def input():
    return sys.stdin.readline()[:-1] input return sys.stdin.readline()[:-1] sys.stdin.readline()[:-1] sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline :-1 -1 def main():
    S = input()

    win = S.count('o')
    l = len(S)
    if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO') main S = input() S input() input win = S.count('o') win S.count('o') S.count S count 'o' l = len(S) l len(S) len S if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO') 15 - l >= 8 - win 15 - l 15 l 8 - win 8 win print('YES') print 'YES' print('NO') print 'NO' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def input():
    return sys.stdin.readline()[:-1] def input():
    return sys.stdin.readline()[:-1] input def main():
    S = input()

    win = S.count('o')
    l = len(S)
    if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO') def main():
    S = input()

    win = S.count('o')
    l = len(S)
    if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO') main
#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    S = input()

    win = S.count('o')
    l = len(S)
    if 15 - l >= 8 - win:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()
