S = str(input())
win = 0
for s in S:
  if s == "o":
    win += 1
if (win + (15 - len(S))) >= 8:
  print("YES")
else:
  print("NO") S = str(input()) S str(input()) str input() input win = 0 win 0 for s in S:
  if s == "o":
    win += 1 s S if s == "o":
    win += 1 s == "o" s "o" win += 1 win 1 if (win + (15 - len(S))) >= 8:
  print("YES")
else:
  print("NO") (win + (15 - len(S))) >= 8 win + (15 - len(S)) win 15 - len(S) 15 len(S) len S 8 print("YES") print "YES" print("NO") print "NO" S = str(input()) str(input()) S win = 0 0 win win += 1 1 win
S = str(input())
win = 0
for s in S:
  if s == "o":
    win += 1
if (win + (15 - len(S))) >= 8:
  print("YES")
else:
  print("NO")