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