s = input()

n = len(s)

if 8 <= 15-n+s.count('o'):
    print('YES')
else:
    print('NO') s = input() s input() input n = len(s) n len(s) len s if 8 <= 15-n+s.count('o'):
    print('YES')
else:
    print('NO') 8 <= 15-n+s.count('o') 8 15-n+s.count('o') 15-n 15 n s.count('o') s.count s count 'o' print('YES') print 'YES' print('NO') print 'NO' n = len(s) len(s) n s = input() input() s
s = input()

n = len(s)

if 8 <= 15-n+s.count('o'):
    print('YES')
else:
    print('NO')