S = input(str())
if S.count("o")+15-len(S)>=8:
  print("YES")
else:
  print("NO") S = input(str()) S input(str()) input str() str if S.count("o")+15-len(S)>=8:
  print("YES")
else:
  print("NO") S.count("o")+15-len(S)>=8 S.count("o")+15-len(S) S.count("o")+15 S.count("o") S.count S count "o" 15 len(S) len S 8 print("YES") print "YES" print("NO") print "NO" S = input(str()) input(str()) S
S = input(str())
if S.count("o")+15-len(S)>=8:
  print("YES")
else:
  print("NO")