S = input()
o = S.count('o')
x = S.count('x')
o += 15 - o - x
print("YES" if o >= 8 else "NO") S = input() S input() input o = S.count('o') o S.count('o') S.count S count 'o' x = S.count('x') x S.count('x') S.count S count 'x' o += 15 - o - x o 15 - o - x 15 - o 15 o x print("YES" if o >= 8 else "NO") print "YES" if o >= 8 else "NO" o >= 8 o 8 "YES" "NO" S = input() input() S x = S.count('x') S.count('x') x o += 15 - o - x 15 - o - x o o = S.count('o') S.count('o') o
S = input()
o = S.count('o')
x = S.count('x')
o += 15 - o - x
print("YES" if o >= 8 else "NO")