#M-SOLUTIONS プロコンオープン b
s=input()
win=s.count('o')+max(0,15-len(s))
if win>=8:
    print("YES")
else:
    print("NO") s=input() s input() input win=s.count('o')+max(0,15-len(s)) win s.count('o')+max(0,15-len(s)) s.count('o') s.count s count 'o' max(0,15-len(s)) max 0 15-len(s) 15 len(s) len s if win>=8:
    print("YES")
else:
    print("NO") win>=8 win 8 print("YES") print "YES" print("NO") print "NO" win=s.count('o')+max(0,15-len(s)) s.count('o')+max(0,15-len(s)) win s=input() input() s
#M-SOLUTIONS プロコンオープン b
s=input()
win=s.count('o')+max(0,15-len(s))
if win>=8:
    print("YES")
else:
    print("NO")