record = input()

wins = 0

for match in record:
    if(match == "o" or match =="O"):
        wins += 1

matchesPlayed = len(record)

if(15 - matchesPlayed + wins > 7):
    print("YES")
else:
    print("NO") record = input() record input() input wins = 0 wins 0 for match in record:
    if(match == "o" or match =="O"):
        wins += 1 match record if(match == "o" or match =="O"):
        wins += 1 match == "o" or match =="O" match == "o" match "o" match =="O" match "O" wins += 1 wins 1 matchesPlayed = len(record) matchesPlayed len(record) len record if(15 - matchesPlayed + wins > 7):
    print("YES")
else:
    print("NO") 15 - matchesPlayed + wins > 7 15 - matchesPlayed + wins 15 - matchesPlayed 15 matchesPlayed wins 7 print("YES") print "YES" print("NO") print "NO" record = input() input() record wins += 1 1 wins matchesPlayed = len(record) len(record) matchesPlayed wins = 0 0 wins
record = input()

wins = 0

for match in record:
    if(match == "o" or match =="O"):
        wins += 1

matchesPlayed = len(record)

if(15 - matchesPlayed + wins > 7):
    print("YES")
else:
    print("NO")
