# coding: utf-8
# user: herp_sy

import math
import statistics

win = 0
lose = 0
s = input()
for i in range(len(s)):
  if s[i] == 'o':
    win = win + 1
  else:
    lose = lose + 1
if(win + (15 - len(s)) >= 8):
  print('YES')
else:
  print('NO') import math math import statistics statistics win = 0 win 0 lose = 0 lose 0 s = input() s input() input for i in range(len(s)):
  if s[i] == 'o':
    win = win + 1
  else:
    lose = lose + 1 i range(len(s)) range len(s) len s if s[i] == 'o':
    win = win + 1
  else:
    lose = lose + 1 s[i] == 'o' s[i] s i 'o' win = win + 1 win win + 1 win 1 lose = lose + 1 lose lose + 1 lose 1 if(win + (15 - len(s)) >= 8):
  print('YES')
else:
  print('NO') win + (15 - len(s)) >= 8 win + (15 - len(s)) win 15 - len(s) 15 len(s) len s 8 print('YES') print 'YES' print('NO') print 'NO' win = win + 1 win + 1 win win = 0 0 win s = input() input() s lose = lose + 1 lose + 1 lose lose = 0 0 lose
# coding: utf-8
# user: herp_sy

import math
import statistics

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