S = str(input())
count_y = 0
count_n = 0
for i in range(len(S)):
  if S[i] == "o":
    count_y += 1
  else:
    count_n += 1
  if count_n>7:
    print("NO")
    exit()
print("YES") S = str(input()) S str(input()) str input() input count_y = 0 count_y 0 count_n = 0 count_n 0 for i in range(len(S)):
  if S[i] == "o":
    count_y += 1
  else:
    count_n += 1
  if count_n>7:
    print("NO")
    exit() i range(len(S)) range len(S) len S if S[i] == "o":
    count_y += 1
  else:
    count_n += 1
   S[i] == "o" S[i] S i "o" count_y += 1 count_y 1 count_n += 1 count_n 1 if count_n>7:
    print("NO")
    exit() count_n>7 count_n 7 print("NO") print "NO" exit() exit print("YES") print "YES" count_y += 1 1 count_y S = str(input()) str(input()) S count_n = 0 0 count_n count_n += 1 1 count_n count_y = 0 0 count_y
S = str(input())
count_y = 0
count_n = 0
for i in range(len(S)):
  if S[i] == "o":
    count_y += 1
  else:
    count_n += 1
  if count_n>7:
    print("NO")
    exit()
print("YES")