S = input().strip()
k = len(S)
n = S.count("o")
if n+15-k>=8:
    print("YES")
else:
    print("NO") S = input().strip() S input().strip() ().strip () input strip k = len(S) k len(S) len S n = S.count("o") n S.count("o") S.count S count "o" if n+15-k>=8:
    print("YES")
else:
    print("NO") n+15-k>=8 n+15-k n+15 n 15 k 8 print("YES") print "YES" print("NO") print "NO" S = input().strip() input().strip() S k = len(S) len(S) k n = S.count("o") S.count("o") n
S = input().strip()
k = len(S)
n = S.count("o")
if n+15-k>=8:
    print("YES")
else:
    print("NO")