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