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