s = input()
n = len(s)
count_win = s.count('o')
count_trial = 15 - n

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

if count_trial >= 8 - count_win:
    print('YES')
else:
    print('NO')