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