s = list(input())

win = s.count('x')

print('NO' if win >= 8 else 'YES') s = list(input()) s list(input()) list input() input win = s.count('x') win s.count('x') s.count s count 'x' print('NO' if win >= 8 else 'YES') print 'NO' if win >= 8 else 'YES' win >= 8 win 8 'NO' 'YES' win = s.count('x') s.count('x') win s = list(input()) list(input()) s
s = list(input())

win = s.count('x')

print('NO' if win >= 8 else 'YES')