'''
Created on 2020/09/06

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return 
main() '''
Created on 2020/09/06

@author: harurun
''' def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return  main import sys sys pin=sys.stdin.readline pin sys.stdin.readline sys.stdin sys stdin readline pout=sys.stdout.write pout sys.stdout.write sys.stdout sys stdout write perr=sys.stderr.write perr sys.stderr.write sys.stderr sys stderr write S=pin()[:-1] S pin()[:-1] () pin :-1 -1 t=S.count("o") t S.count("o") S.count S count "o" u=len(S) u len(S) len S if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
   15-u+t>=8 15-u+t 15-u 15 u t 8 print("YES") print "YES" print("NO") print "NO" return main() main def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return  def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return  main
'''
Created on 2020/09/06

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return 
main()