def main():
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c == "o":
            cnt += 1
    if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO")

if __name__ == "__main__":
    main() def main():
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c == "o":
            cnt += 1
    if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO") main s = input().rstrip() s input().rstrip() ().rstrip () input rstrip cnt = 0 cnt 0 for c in s:
        if c == "o":
            cnt += 1
     c s if c == "o":
            cnt += 1
     c == "o" c "o" cnt += 1 cnt 1 if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO") cnt + (15-len(s)) >= 8 cnt + (15-len(s)) cnt 15-len(s) 15 len(s) len s 8 print("YES") print "YES" print("NO") print "NO" if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c == "o":
            cnt += 1
    if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO") def main():
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c == "o":
            cnt += 1
    if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO") main
def main():
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c == "o":
            cnt += 1
    if cnt + (15-len(s)) >= 8:
        print("YES")
    else:
        print("NO")

if __name__ == "__main__":
    main()