#23 M-SOLUTIONS
s=input()
x=s.count("x")
print("YES" if x<=7 else "NO") s=input() s input() input x=s.count("x") x s.count("x") s.count s count "x" print("YES" if x<=7 else "NO") print "YES" if x<=7 else "NO" x<=7 x 7 "YES" "NO" x=s.count("x") s.count("x") x s=input() input() s
#23 M-SOLUTIONS
s=input()
x=s.count("x")
print("YES" if x<=7 else "NO")
