S = input()
K = len(S)

N = S.count("o")

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

N = S.count("o")

if N + 15 - K >= 8:
  print("YES")
else:
  print("NO")