s = input()
lose = s.count('x')
if lose > 7:
    print('NO')
else:
    print('YES') s = input() s input() input lose = s.count('x') lose s.count('x') s.count s count 'x' if lose > 7:
    print('NO')
else:
    print('YES') lose > 7 lose 7 print('NO') print 'NO' print('YES') print 'YES' lose = s.count('x') s.count('x') lose s = input() input() s
s = input()
lose = s.count('x')
if lose > 7:
    print('NO')
else:
    print('YES')