s=str(input())
s=list(s)
t=0
for i in range(len(s)):
  if s[i]=="x":
    t=t+1
if t>=8:
  print("NO")
else:
  print("YES") s=str(input()) s str(input()) str input() input s=list(s) s list(s) list s t=0 t 0 for i in range(len(s)):
  if s[i]=="x":
    t=t+1 i range(len(s)) range len(s) len s if s[i]=="x":
    t=t+1 s[i]=="x" s[i] s i "x" t=t+1 t t+1 t 1 if t>=8:
  print("NO")
else:
  print("YES") t>=8 t 8 print("NO") print "NO" print("YES") print "YES" t=t+1 t+1 t s=str(input()) str(input()) s t=0 0 t s=list(s) list(s) s
s=str(input())
s=list(s)
t=0
for i in range(len(s)):
  if s[i]=="x":
    t=t+1
if t>=8:
  print("NO")
else:
  print("YES")