s = list(input())
if s.count('x') >= 8:
    print("NO")
else:
    print("YES") s = list(input()) s list(input()) list input() input if s.count('x') >= 8:
    print("NO")
else:
    print("YES") s.count('x') >= 8 s.count('x') s.count s count 'x' 8 print("NO") print "NO" print("YES") print "YES" s = list(input()) list(input()) s
s = list(input())
if s.count('x') >= 8:
    print("NO")
else:
    print("YES")