S = input()
S_list = list(S)
remain_match = 15 - len(S_list)
S_remain_win = 8 - S.count("o")
if remain_match >= S_remain_win:
  print("YES")
else:
  print("NO") S = input() S input() input S_list = list(S) S_list list(S) list S remain_match = 15 - len(S_list) remain_match 15 - len(S_list) 15 len(S_list) len S_list S_remain_win = 8 - S.count("o") S_remain_win 8 - S.count("o") 8 S.count("o") S.count S count "o" if remain_match >= S_remain_win:
  print("YES")
else:
  print("NO") remain_match >= S_remain_win remain_match S_remain_win print("YES") print "YES" print("NO") print "NO" S = input() input() S remain_match = 15 - len(S_list) 15 - len(S_list) remain_match S_remain_win = 8 - S.count("o") 8 - S.count("o") S_remain_win S_list = list(S) list(S) S_list
S = input()
S_list = list(S)
remain_match = 15 - len(S_list)
S_remain_win = 8 - S.count("o")
if remain_match >= S_remain_win:
  print("YES")
else:
  print("NO")
