s=input()
b=len(s)
a=7-b
for i in range(b):
    if s[i]=="o":
        a+=1
if a>=0:
    print('YES')
else:
    print('NO') s=input() s input() input b=len(s) b len(s) len s a=7-b a 7-b 7 b for i in range(b):
    if s[i]=="o":
        a+=1 i range(b) range b if s[i]=="o":
        a+=1 s[i]=="o" s[i] s i "o" a+=1 a 1 if a>=0:
    print('YES')
else:
    print('NO') a>=0 a 0 print('YES') print 'YES' print('NO') print 'NO' a+=1 1 a s=input() input() s b=len(s) len(s) b a=7-b 7-b a
s=input()
b=len(s)
a=7-b
for i in range(b):
    if s[i]=="o":
        a+=1
if a>=0:
    print('YES')
else:
    print('NO')