s = input()

i_win = s.count('o')
k = len(s)

if i_win + (15 - k) >= 8:
    print("YES")
else:
    print("NO") s = input() s input() input i_win = s.count('o') i_win s.count('o') s.count s count 'o' k = len(s) k len(s) len s if i_win + (15 - k) >= 8:
    print("YES")
else:
    print("NO") i_win + (15 - k) >= 8 i_win + (15 - k) i_win 15 - k 15 k 8 print("YES") print "YES" print("NO") print "NO" s = input() input() s i_win = s.count('o') s.count('o') i_win k = len(s) len(s) k
s = input()

i_win = s.count('o')
k = len(s)

if i_win + (15 - k) >= 8:
    print("YES")
else:
    print("NO")
