S = input()
rem =  15 - len(S)

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

if S.count('o') + rem >= 8:
    print('YES')
else:
    print('NO')
