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