s = input()
k = len(s)
if 8+s.count('o')>k:
    print('YES')
else:
    print('NO') s = input() s input() input k = len(s) k len(s) len s if 8+s.count('o')>k:
    print('YES')
else:
    print('NO') 8+s.count('o')>k 8+s.count('o') 8 s.count('o') s.count s count 'o' k print('YES') print 'YES' print('NO') print 'NO' k = len(s) len(s) k s = input() input() s
s = input()
k = len(s)
if 8+s.count('o')>k:
    print('YES')
else:
    print('NO')