s = list(input())
i = len(s)
o = s.count('o')

if o >= 8:
    print('YES')
else:
    i = 15 - i
    if 8 - o <= i:
        print('YES')
    else:
        print('NO') s = list(input()) s list(input()) list input() input i = len(s) i len(s) len s o = s.count('o') o s.count('o') s.count s count 'o' if o >= 8:
    print('YES')
else:
    i = 15 - i
    if 8 - o <= i:
        print('YES')
    else:
        print('NO') o >= 8 o 8 print('YES') print 'YES' i = 15 - i i 15 - i 15 i if 8 - o <= i:
        print('YES')
    else:
        print('NO') 8 - o <= i 8 - o 8 o i print('YES') print 'YES' print('NO') print 'NO' o = s.count('o') s.count('o') o s = list(input()) list(input()) s i = 15 - i 15 - i i i = len(s) len(s) i
s = list(input())
i = len(s)
o = s.count('o')

if o >= 8:
    print('YES')
else:
    i = 15 - i
    if 8 - o <= i:
        print('YES')
    else:
        print('NO')