s = input()
cnt = 0
for i in s:
    if i == "x":
        cnt += 1
if cnt > 7:
    print("NO")
else:
    print("YES") s = input() s input() input cnt = 0 cnt 0 for i in s:
    if i == "x":
        cnt += 1 i s if i == "x":
        cnt += 1 i == "x" i "x" cnt += 1 cnt 1 if cnt > 7:
    print("NO")
else:
    print("YES") cnt > 7 cnt 7 print("NO") print "NO" print("YES") print "YES" s = input() input() s cnt = 0 0 cnt cnt += 1 1 cnt
s = input()
cnt = 0
for i in s:
    if i == "x":
        cnt += 1
if cnt > 7:
    print("NO")
else:
    print("YES")