s = input()
o = s.count("o")
x = s.count("x")
rest = 15 - o - x
if o + rest >= 8:
    print("YES")
else:
    print("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" rest = 15 - o - x rest 15 - o - x 15 - o 15 o x if o + rest >= 8:
    print("YES")
else:
    print("NO") o + rest >= 8 o + rest o rest 8 print("YES") print "YES" print("NO") print "NO" o = s.count("o") s.count("o") o s = input() input() s x = s.count("x") s.count("x") x rest = 15 - o - x 15 - o - x rest
s = input()
o = s.count("o")
x = s.count("x")
rest = 15 - o - x
if o + rest >= 8:
    print("YES")
else:
    print("NO")