s = input()
ans = s.rjust(15, 'o').count('o')  >=  8
print(ans and 'YES' or 'NO') s = input() s input() input ans = s.rjust(15, 'o').count('o')  >=  8 ans s.rjust(15, 'o').count('o')  >=  8 s.rjust(15, 'o').count('o') s.rjust(15, 'o').count s.rjust(15, 'o') s.rjust s rjust 15 'o' count 'o' 8 print(ans and 'YES' or 'NO') print ans and 'YES' or 'NO' ans and 'YES' ans 'YES' 'NO' s = input() input() s ans = s.rjust(15, 'o').count('o')  >=  8 s.rjust(15, 'o').count('o')  >=  8 ans
s = input()
ans = s.rjust(15, 'o').count('o')  >=  8
print(ans and 'YES' or 'NO')