s = input() #sys.stdin.readlineは最後が改行

l = len(s)
cc = s.count('o')
cc += 15-l
if cc >=8:
    print('YES')
else:
    print('NO') s = input() s input() input l = len(s) l len(s) len s cc = s.count('o') cc s.count('o') s.count s count 'o' cc += 15-l cc 15-l 15 l if cc >=8:
    print('YES')
else:
    print('NO') cc >=8 cc 8 print('YES') print 'YES' print('NO') print 'NO' l = len(s) len(s) l cc += 15-l 15-l cc cc = s.count('o') s.count('o') cc s = input() input() s
s = input() #sys.stdin.readlineは最後が改行

l = len(s)
cc = s.count('o')
cc += 15-l
if cc >=8:
    print('YES')
else:
    print('NO')