s = input()
rest = 15 - len(s)
if s.count('o') + rest > 7:
    print('YES')
else:
    print('NO') s = input() s input() input rest = 15 - len(s) rest 15 - len(s) 15 len(s) len s if s.count('o') + rest > 7:
    print('YES')
else:
    print('NO') s.count('o') + rest > 7 s.count('o') + rest s.count('o') s.count s count 'o' rest 7 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)
if s.count('o') + rest > 7:
    print('YES')
else:
    print('NO')