# https://atcoder.jp/contests/m-solutions2019/tasks/m_solutions2019_b

S = input().strip()
if S.count("x") >= 8:
    print("NO")
else:
    print("YES") S = input().strip() S input().strip() ().strip () input strip if S.count("x") >= 8:
    print("NO")
else:
    print("YES") S.count("x") >= 8 S.count("x") S.count S count "x" 8 print("NO") print "NO" print("YES") print "YES" S = input().strip() input().strip() S
# https://atcoder.jp/contests/m-solutions2019/tasks/m_solutions2019_b

S = input().strip()
if S.count("x") >= 8:
    print("NO")
else:
    print("YES")
