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