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