S = list(input())

#勝利数
win = S.count("o")
#これから勝つ必要のある試合
korekara = 8 - win
#戦った試合
match = len(S)
#残り試合
nokori = 15 - match

if korekara <= 0:
    print("YES")
elif nokori >= korekara:
    print("YES")
else:
    print("NO") S = list(input()) S list(input()) list input() input win = S.count("o") win S.count("o") S.count S count "o" korekara = 8 - win korekara 8 - win 8 win match = len(S) match len(S) len S nokori = 15 - match nokori 15 - match 15 match if korekara <= 0:
    print("YES")
elif nokori >= korekara:
    print("YES")
else:
    print("NO") korekara <= 0 korekara 0 print("YES") print "YES" elif nokori >= korekara:
    print("YES") nokori >= korekara nokori korekara print("YES") print "YES" print("NO") print "NO" win = S.count("o") S.count("o") win S = list(input()) list(input()) S korekara = 8 - win 8 - win korekara match = len(S) len(S) match nokori = 15 - match 15 - match nokori
S = list(input())

#勝利数
win = S.count("o")
#これから勝つ必要のある試合
korekara = 8 - win
#戦った試合
match = len(S)
#残り試合
nokori = 15 - match

if korekara <= 0:
    print("YES")
elif nokori >= korekara:
    print("YES")
else:
    print("NO")