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