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