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