S = input()
A = S.count('o') 
B = 15 - len(S)
if A+B >= 8:
    print('YES')
else:
    print('NO') S = input() S input() input A = S.count('o') A S.count('o') S.count S count 'o' B = 15 - len(S) B 15 - len(S) 15 len(S) len S if A+B >= 8:
    print('YES')
else:
    print('NO') A+B >= 8 A+B A B 8 print('YES') print 'YES' print('NO') print 'NO' A = S.count('o') S.count('o') A S = input() input() S B = 15 - len(S) 15 - len(S) B
S = input()
A = S.count('o') 
B = 15 - len(S)
if A+B >= 8:
    print('YES')
else:
    print('NO')