import sys

def main():
    input = sys.stdin.readline
    S = [1 for c in input().strip() if c == 'x']
    if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES'

if __name__ == '__main__':
    print(main()) import sys sys def main():
    input = sys.stdin.readline
    S = [1 for c in input().strip() if c == 'x']
    if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES' main input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline 1 for c in input().strip() if c == 'x' for c in input().strip() if c == 'x' c input().strip() ().strip () input strip c == 'x' c 'x' if c == 'x' 1 S = [1 for c in input().strip() if c == 'x'] S [1 for c in input().strip() if c == 'x'] if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES' sum(S) >= 8 sum(S) sum S 8 return 'NO' 'NO' return 'YES' 'YES' if __name__ == '__main__':
    print(main()) __name__ == '__main__' __name__ '__main__' print(main()) print main() main def main():
    input = sys.stdin.readline
    S = [1 for c in input().strip() if c == 'x']
    if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES' def main():
    input = sys.stdin.readline
    S = [1 for c in input().strip() if c == 'x']
    if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES' main
import sys

def main():
    input = sys.stdin.readline
    S = [1 for c in input().strip() if c == 'x']
    if sum(S) >= 8:
        return 'NO'
    else:
        return 'YES'

if __name__ == '__main__':
    print(main())
