
#oが勝ち、xが負け
S = input()
le = len(S)

#勝ち数
win = (S.count('o'))

#残試合数
zan = 15 - le

if win + zan >= 8:
  print('YES')
else:
  print('NO') S = input() S input() input le = len(S) le len(S) len S win = (S.count('o')) win S.count('o') S.count S count 'o' zan = 15 - le zan 15 - le 15 le if win + zan >= 8:
  print('YES')
else:
  print('NO') win + zan >= 8 win + zan win zan 8 print('YES') print 'YES' print('NO') print 'NO' win = (S.count('o')) S.count('o') win S = input() input() S zan = 15 - le 15 - le zan le = len(S) len(S) le

#oが勝ち、xが負け
S = input()
le = len(S)

#勝ち数
win = (S.count('o'))

#残試合数
zan = 15 - le

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