#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str
K = 15

def solve(S: str):
    count =  S.count("o")
    if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main() import sys sys YES = "YES" YES "YES" NO = "NO" NO "NO" K = 15 K 15 def solve(S: str):
    count =  S.count("o")
    if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template) solve count =  S.count("o") count S.count("o") S.count S count "o" if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
     count >= 8 count 8 print("YES") print "YES" rest = K - len(S) rest K - len(S) K len(S) len S if count + rest >= 8:
            print("YES")
        else:
            print("NO")
     count + rest >= 8 count + rest count rest 8 print("YES") print "YES" print("NO") print "NO" return S: str S def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S) main def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens S = next(tokens) S next(tokens) next tokens solve(S) solve S if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main K = 15 15 K def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S) def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S) main YES = "YES" "YES" YES def solve(S: str):
    count =  S.count("o")
    if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template) def solve(S: str):
    count =  S.count("o")
    if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template) solve NO = "NO" "NO" NO
#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str
K = 15

def solve(S: str):
    count =  S.count("o")
    if count >= 8:
        print("YES")
    else:
        rest = K - len(S)
        if count + rest >= 8:
            print("YES")
        else:
            print("NO")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()
