s = input()
rest = 15 - len(s)
t = 'o'
t = t*rest
posibble = s + t
if posibble.count('o') >= 8:
  print('YES')
else:
  print('NO') s = input() s input() input rest = 15 - len(s) rest 15 - len(s) 15 len(s) len s t = 'o' t 'o' t = t*rest t t*rest t rest posibble = s + t posibble s + t s t if posibble.count('o') >= 8:
  print('YES')
else:
  print('NO') posibble.count('o') >= 8 posibble.count('o') posibble.count posibble count 'o' 8 print('YES') print 'YES' print('NO') print 'NO' s = input() input() s rest = 15 - len(s) 15 - len(s) rest t = 'o' 'o' t t = t*rest t*rest t posibble = s + t s + t posibble
s = input()
rest = 15 - len(s)
t = 'o'
t = t*rest
posibble = s + t
if posibble.count('o') >= 8:
  print('YES')
else:
  print('NO')
