s = input()
s = s + "o" * (15 - len(s))

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

if s.count("o") >= 8:
    print("YES")
else:
    print("NO")