S = input()
num = S.count("x")
if 1 <= len(S) <= 15:
    if 1 <= len(S) <= 7 :
        print("YES")
    else :
        if num >= 8 :
            print("NO")
        else :
            print("YES") S = input() S input() input num = S.count("x") num S.count("x") S.count S count "x" if 1 <= len(S) <= 15:
    if 1 <= len(S) <= 7 :
        print("YES")
    else :
        if num >= 8 :
            print("NO")
        else :
            print("YES") 1 <= len(S) <= 15 1 <= len(S) 1 len(S) len S 15 if 1 <= len(S) <= 7 :
        print("YES")
    else :
        if num >= 8 :
            print("NO")
        else :
            print("YES") 1 <= len(S) <= 7 1 <= len(S) 1 len(S) len S 7 print("YES") print "YES" if num >= 8 :
            print("NO")
        else :
            print("YES") num >= 8 num 8 print("NO") print "NO" print("YES") print "YES" num = S.count("x") S.count("x") num S = input() input() S
S = input()
num = S.count("x")
if 1 <= len(S) <= 15:
    if 1 <= len(S) <= 7 :
        print("YES")
    else :
        if num >= 8 :
            print("NO")
        else :
            print("YES")
