a = input()

b = a.count('o')

if 8 - b <= 15 - len(a):
    print('YES')
else:
    print('NO') a = input() a input() input b = a.count('o') b a.count('o') a.count a count 'o' if 8 - b <= 15 - len(a):
    print('YES')
else:
    print('NO') 8 - b <= 15 - len(a) 8 - b 8 b 15 - len(a) 15 len(a) len a print('YES') print 'YES' print('NO') print 'NO' a = input() input() a b = a.count('o') a.count('o') b
a = input()

b = a.count('o')

if 8 - b <= 15 - len(a):
    print('YES')
else:
    print('NO')