S = list(input())
if(15-S.count('x')>=8):
    print('YES')
else:
    print('NO') S = list(input()) S list(input()) list input() input if(15-S.count('x')>=8):
    print('YES')
else:
    print('NO') 15-S.count('x')>=8 15-S.count('x') 15 S.count('x') S.count S count 'x' 8 print('YES') print 'YES' print('NO') print 'NO' S = list(input()) list(input()) S
S = list(input())
if(15-S.count('x')>=8):
    print('YES')
else:
    print('NO')