# -*- coding: utf-8 -*-


def main():
    k = list(input())
    win_count = k.count('o')

    if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main() def main():
    k = list(input())
    win_count = k.count('o')

    if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO') main k = list(input()) k list(input()) list input() input win_count = k.count('o') win_count k.count('o') k.count k count 'o' if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO') (win_count + (15 - len(k))) >= 8 win_count + (15 - len(k)) win_count 15 - len(k) 15 len(k) len k 8 print('YES') print 'YES' print('NO') print 'NO' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    k = list(input())
    win_count = k.count('o')

    if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO') def main():
    k = list(input())
    win_count = k.count('o')

    if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO') main
# -*- coding: utf-8 -*-


def main():
    k = list(input())
    win_count = k.count('o')

    if (win_count + (15 - len(k))) >= 8:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()
