# -*- coding: utf-8 -*-

S = input()

print('YES' if S.count('x') <= 7 else 'NO') S = input() S input() input print('YES' if S.count('x') <= 7 else 'NO') print 'YES' if S.count('x') <= 7 else 'NO' S.count('x') <= 7 S.count('x') S.count S count 'x' 7 'YES' 'NO' S = input() input() S
# -*- coding: utf-8 -*-

S = input()

print('YES' if S.count('x') <= 7 else 'NO')
