S = input()
win = S.count('o')
lose = S.count('x')
remain = 15 - len(S)
if remain + win >= 8:
    print("YES")
else:
    print("NO") S = input() S input() input win = S.count('o') win S.count('o') S.count S count 'o' lose = S.count('x') lose S.count('x') S.count S count 'x' remain = 15 - len(S) remain 15 - len(S) 15 len(S) len S if remain + win >= 8:
    print("YES")
else:
    print("NO") remain + win >= 8 remain + win remain win 8 print("YES") print "YES" print("NO") print "NO" remain = 15 - len(S) 15 - len(S) remain S = input() input() S lose = S.count('x') S.count('x') lose win = S.count('o') S.count('o') win
S = input()
win = S.count('o')
lose = S.count('x')
remain = 15 - len(S)
if remain + win >= 8:
    print("YES")
else:
    print("NO")