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