S = input()
x = len(S)
y = 15 - x
z = ""
point = 0
for i in range(x):
  z = S[i]
  if (z == "o"):
    point += 1
  else:
    point += 0
    
y = y + point
if (y >= 8):
  print("YES")
else:
  print("NO") S = input() S input() input x = len(S) x len(S) len S y = 15 - x y 15 - x 15 x z = "" z "" point = 0 point 0 for i in range(x):
  z = S[i]
  if (z == "o"):
    point += 1
  else:
    point += 0
     i range(x) range x z = S[i] z S[i] S i if (z == "o"):
    point += 1
  else:
    point += 0
     z == "o" z "o" point += 1 point 1 point += 0 point 0 y = y + point y y + point y point if (y >= 8):
  print("YES")
else:
  print("NO") y >= 8 y 8 print("YES") print "YES" print("NO") print "NO" y = y + point y + point y point += 1 1 point z = S[i] S[i] z x = len(S) len(S) x y = 15 - x 15 - x y point = 0 0 point S = input() input() S point += 0 0 point z = "" "" z
S = input()
x = len(S)
y = 15 - x
z = ""
point = 0
for i in range(x):
  z = S[i]
  if (z == "o"):
    point += 1
  else:
    point += 0
    
y = y + point
if (y >= 8):
  print("YES")
else:
  print("NO")