s = input()
l = len(s)
win = 0
for i in range(l):
  if s[i] == 'o':
    win += 1
if win + 15 - l >= 8:
  print('YES')
else:
  print('NO') s = input() s input() input l = len(s) l len(s) len s win = 0 win 0 for i in range(l):
  if s[i] == 'o':
    win += 1 i range(l) range l if s[i] == 'o':
    win += 1 s[i] == 'o' s[i] s i 'o' win += 1 win 1 if win + 15 - l >= 8:
  print('YES')
else:
  print('NO') win + 15 - l >= 8 win + 15 - l win + 15 win 15 l 8 print('YES') print 'YES' print('NO') print 'NO' l = len(s) len(s) l win = 0 0 win win += 1 1 win s = input() input() s
s = input()
l = len(s)
win = 0
for i in range(l):
  if s[i] == 'o':
    win += 1
if win + 15 - l >= 8:
  print('YES')
else:
  print('NO')
