S = list(input())
K, L = len(S), S.count("x")
print("YES" if -L + 15 >= 8 else "NO") S = list(input()) S list(input()) list input() input K, L = len(S), S.count("x") K len(S) len S L S.count("x") S.count S count "x" print("YES" if -L + 15 >= 8 else "NO") print "YES" if -L + 15 >= 8 else "NO" -L + 15 >= 8 -L + 15 -L L 15 8 "YES" "NO" L = len(S), S.count("x") S.count("x") L S = list(input()) list(input()) S K, L = len(S), S.count("x") len(S) K
S = list(input())
K, L = len(S), S.count("x")
print("YES" if -L + 15 >= 8 else "NO")