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