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