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