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