line = list(input())
win = line.count("o")
match = 15-len(line)
if win + match > 7:
    print("YES")
else:
    print("NO") line = list(input()) line list(input()) list input() input win = line.count("o") win line.count("o") line.count line count "o" match = 15-len(line) match 15-len(line) 15 len(line) len line if win + match > 7:
    print("YES")
else:
    print("NO") win + match > 7 win + match win match 7 print("YES") print "YES" print("NO") print "NO" line = list(input()) list(input()) line win = line.count("o") line.count("o") win match = 15-len(line) 15-len(line) match
line = list(input())
win = line.count("o")
match = 15-len(line)
if win + match > 7:
    print("YES")
else:
    print("NO")
