Problem:


Score : 200 points

Problem Statement

Takahashi is competing in a sumo tournament.
The tournament lasts for 15 days, during which he performs in one match per day.
If he wins 8 or more matches, he can also participate in the next tournament.

The matches for the first k days have finished.
You are given the results of Takahashi's matches as a string S consisting of o and x.
If the i-th character in S is o, it means that Takahashi won the match on the i-th day; if that character is x, it means that Takahashi lost the match on the i-th day.

Print YES if there is a possibility that Takahashi can participate in the next tournament, and print NO if there is no such possibility.

Constraints

1 \leq k \leq 15

S is a string of length k consisting of o and x.

Input

Input is given from Standard Input in the following format:

S

Output

Print YES if there is a possibility that Takahashi can participate in the next tournament, and print NO otherwise.

Sample Input 1

oxoxoxoxoxoxox

Sample Output 1

YES

Takahashi has 7 wins and 7 losses before the last match. If he wins that match, he will have 8 wins.

Sample Input 2

xxxxxxxx

Sample Output 2

NO



Sample input:
oxoxoxoxoxoxox


Sample output:
YES

Submission status: Accepted

Solution code:
S=str(input())
list1=list(S)
SUM=0
for i in range(len(S)):
  if list1[i]=="x":
    SUM+=1
if SUM>=8:
  print("NO")
else:
  print("YES")

Submission status: Accepted

Solution code:
str = input()
if str.count('x')>=8:
    print ("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
S=input()
w=0
k=0
for i in S:
    if i=="o":
        w+=1
    k+=1
    
TEXT="NO"
if w+(15-k)>=8:
    TEXT="YES"



print(TEXT)

Submission status: Accepted

Solution code:
S = input()
l = S.count("○") + S.count("x")
if("○" in S) :
  x = S.count("○")
else :
  x = 0
  
if(15 - l + x >= 8) :
  print("YES")
else :
  print("NO")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = str(input())
ans = list(s)

if len(ans) < 8:
    print('YES')
elif len(ans) - ans.count('o') <= 7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S=str(input().strip())
if S.count('x')>=8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
s_list=list(input())

w_count=s_list.count('x')

if w_count<=7:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
S=input()

b=S.count('x')

if((15-b)>=8):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
kekka=list(input())
count=len(kekka)
plus=15-count
c=[]
for w in kekka:
    if w=='o':
        c.append(1)
    else:
        c.append(0)
res=sum(c)+plus
if (int(res)>7):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s=input()
if s.count("o")+15-len(s)>7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
c = S.count('o')
l = len(S)

if c > 7:
	print('YES')
else:
	remain = 15 - l
	if remain + c > 7:
		print('YES')
	else:
		print('NO')

Submission status: Accepted

Solution code:
s = input()
s_list = list(s)
cnt = 0
s_len = len(s)

for i in range(len(s)):
    if s_list[i] == "o":
        cnt += 1

if cnt + 15 - s_len >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    s = lines[0]

    return (s, )


def solve(s, ):

    win = s.count("o")
    lose = s.count("x")
    
    result = "NO"
    if 15 - lose >= 8:
        result = "YES"

    return result

def main():
    # 出力

    print("%s" % solve(*parse_input()))


if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
S = input()

sum_maru = sum([1 for c in S if c == 'x'])
if sum_maru >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
S=input()
nokori=15-len(S)
ablewin=S.count('o')+nokori
if ablewin>=8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S = list(str(input()))

if S.count("o") >= 8:
  print("YES")
else:
  if 15 - len(S) + S.count("o") >= 8:
    print("YES")
  else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()

total_count = 0 
lose_count = 0
for s in S:
  if s == 'x':
    lose_count += 1
  total_count += 1

if lose_count >= 8:
  print('NO')
else:
  print('YES')

Submission status: Accepted

Solution code:
s = input()

win = s.count("o")

number = len(s)

print("YES" if win + (15 - number) >= 8 else "NO")

Submission status: Accepted

Solution code:
s = input()
print('YES' if s.count('x') <= 7 else 'NO')

Submission status: Accepted

Solution code:
def main():
    s = input()
    c = s.count('x')
    if c >= 8:
        print('NO')
    else:
        print('YES')

main()

Submission status: Accepted

Solution code:
data = input()
if 15 - len(data) + data.count('o') >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S = list(input())

day = len(S)
win = S.count('o')
lose = S.count('x')
if win >= 8:
    print('YES')
else:
    if (15 - day) + win >= 8:
        print('YES')
    else:
        print('NO')

Submission status: Accepted

Solution code:
s = input()

num = 0
for i in range(len(s)):
    if s[i] == 'o':
        num += 1
        
if 15 - len(s) >= 8 - num:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = str(input())

circles = 0
crosses = 0

length = len(S)
rest = 15 - length


for i in S:
    if i == 'o':
        circles += 1
    else:
        crosses += 1

if rest + circles >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
a = 15 - len(s)
cnt = s.count("o")
if a + cnt >=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a = input()
b = int(0)


for i in range(len(a)):
    if a[i]=="x": b=b+1

if b>=8: print("NO")
else: print("YES")

Submission status: Accepted

Solution code:
S=input()
l=len(S)
w=S.count("o")
if (7-l+w)>=0:
     print("YES")
else:
     print("NO")

Submission status: Accepted

Solution code:
S = input()


count_o = 0
count_x = 0
for i in S:
    if i == "o":
        count_o += 1
    else:
        count_x += 1

if 15 - len(S) + count_o >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
lose = S.count('x')
if lose >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
print('NO' if input().count('x')>7 else 'YES')

Submission status: Accepted

Solution code:
S = input()
c = S.count('o')
if c+15-len(S) > 7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s=input()

l=len(s)
count=0

for i in range(l):
    if s[i]=="o":
        count=count+1

f=15-l

if count+f>=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()

victory = s.count('o')
remain = 15 - len(s)

if victory + remain >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
w=0
ipt=input()
for r in ipt:
    if r == 'o':
        w=w+1
if((len(ipt)- 7) > w):
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
s = str(input())
if s.count('x') <=7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
if 15-len(s)+s.count('o') > 7:
    print("YES")
else:
    print('NO')

Submission status: Accepted

Solution code:
import bisect
from operator import itemgetter
import math
import functools
import itertools
import numpy as np
import sys
MAX_INT = int(10e10)
MIN_INT = -MAX_INT
mod = 1000000007
sys.setrecursionlimit(1000000)
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

s = input()
num = s.count("x")

if num <= 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
if S.count('o') >= len(S) - 7:
  print('YES') 
else:
  print('NO')

Submission status: Accepted

Solution code:
s=input()
a=s.count("x")
if a>=8:
	print("NO")
else:
	print("YES")

Submission status: Accepted

Solution code:
s = list(input())

N = 15
n = len(s)
rest_n = N - n

win_n = sum([1 if s[i] == 'o' else 0 for i in range(len(s))])

remaining_win_n = 8 - win_n

if rest_n >= remaining_win_n:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
win_or_lose = input()
result = 0
for ind in range(len(win_or_lose)):
    if win_or_lose[ind] == "x":
        result += 1
if result >= 8:
  print("NO")
else:
  print("YES")

Submission status: Accepted

Solution code:
str = input()
k = len(str)

num_win = 0

for i in range(k):
    if str[i] == 'o':
        num_win += 1

if (15 - k) + num_win >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S=input()
n=S.count('o')
l=15-len(S)
if n+l>=8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S = input()

i = S.count('o') + 15 - len(S)

if i>=8:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().rstrip()
result = S.count('x')
print('NO' if result >= 8 else 'YES')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
S = input()
k = len(S)
wins = 0
for c in S:
    if c == "o":
        wins += 1
max_wins = wins + 15-k
if max_wins >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
o = S.count("o")
x = S.count("x")
n = 15-o-x
ans = "NO"
if n+o >= 8:
  ans = "YES"
print(ans)

Submission status: Accepted

Solution code:
s = input()

win = s.count('o')

loss = s.count('x')

l = len(s)


# print(win,loss,l)

if(win>= 8 or 15-l+win >= 8):
	print("YES")

else:
	print("NO")

Submission status: Accepted

Solution code:
S = str(input())
cnt = 0
for i in range(len(S)):
    if S[i] == "o":
        cnt += 1
    count = i+1
sa = 15 - count 
if (cnt) + sa >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

k = input()
a = 15 - len(k)
k = k.replace("x", "")
if (len(k)+a) >=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().rstrip()
maru = s.replace('x','');

if( (len(maru))+ (15-len(s)) >= 8 ) :
  print("YES");
else :
  print("NO");

Submission status: Accepted

Solution code:
S = input()

print('YES' if S.count('o') + (15 - len(S)) >= 8  else 'NO')

Submission status: Accepted

Solution code:
k = input()
win_count = 0
lose_count = 0
for i in range (len(k)):
    if k[i] == "o":
        win_count += 1
    else:
        lose_count += 1
if win_count + (15-len(k))>= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()

15 - len(S)

if (15 - len(S)) + S.count('o') >= 8:
    print('YES')

else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()

a = s.count("o")

if 8-a<=15-len(s):
    print("YES")

else:
    print("NO")

Submission status: Accepted

Solution code:
list1 = [i for i in input()]
count1 = 0
for i in range(len(list1)):
    if list1[i] == "x":
        count1 += 1

if count1>=8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
s_li = list(input())
if 15 - len(s_li) + s_li.count('o') >= 8:
    print("YES")
else :
    print("NO")

Submission status: Accepted

Solution code:
S = str(input())
count = 0

for i in S:
    if i == 'o':
        count += 1

if count + (15 - len(S)) >= 8:
    hantei = 'YES'
else:
    hantei = 'NO'

print(hantei)

Submission status: Accepted

Solution code:
a = input()
n = 15
o = a.count("o")
x = a.count("x")

if n - x > 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
string = input()
S = [s for s in string]

for i in range(int(15 - len(S))):
    S.append("o")

ans = 0
for s in S:
    if s == "o":
        ans += 1
if ans >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:

str1 = input() + "ooooooooooooooo"

count1 = 0

for i in range(15):
    if str1[i] == "o":
        count1 +=1

if count1 >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
from collections import Counter
s = input()
nokori = 15 - len(s)
c = Counter(s)

if c['o'] + nokori >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!


S = input()

count = 0
for i in range(len(S)):

    if S[i] == "x":
       count += 1

if count <= 7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = list(map(str,input()))

count = 0
for i in range(len(s)):
    if s[i] == "o":
        count += 1

x = 15 - len(s)

if count + x >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
count = input().count('x')

if count >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
s = input()

if s.count("x") <= 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()

x = 15 - len(S)
if S.count("o") + x >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s=input()
if len(s)<8:
  print("YES")
elif s.count('o')>=len(s)-7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
N = input()
num = 0
for i in N:
    if i == 'x':
        num += 1
if num >= 8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
instr = input()
x_count = 0
for i in range(len(instr)):
  #print(instr[i:i+1])
  if instr[i:i+1] == "x":
     x_count += 1
if x_count >= 8:
   print("NO")
else:
  print("YES")

Submission status: Accepted

Solution code:
S = list(input())
kati = len(S)-S.count("o")
if kati >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
S = input()
S_list = list(S)

count = 0

for X in S_list:
    if X == 'x':
        count += 1

if count >= 8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
print(['NO', 'YES'][input().count('x') < 8])

Submission status: Accepted

Solution code:
S = list(input())
c=0
for i in S:
    if i=='o':
        c+=1
if 15-len(S)+c>=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input())

if s.count("x") >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
s = input()
k = len(s)

count = 0
for i in s:
    if i == 'o':
        count += 1

if count + 15 - k >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S=str(input())
N=8-S.count('o')
n=15-len(S)
if n>=N:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
k = len(s)
o = []
x = []
for i,j in enumerate(s):
    if j == 'o':
        o.append(i)
    else:
        x.append(i)

if 15-len(s) + len(o) >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
if input().count('x') < 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
i = s.count('x')
if i < 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
cnt = 0
for i in range(len(s)):
    if s[i] == "x":
        cnt += 1
if cnt >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

k = len(S)
win = S.count('o')
lose = S.count('x')

rem = 15 - k 
diff = win - lose

if diff > 0 or rem > (lose - win):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
t = input()
k=t.count("o")
n = 15 - len(t)
if k+n >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s=list(input())
n = s.count('o')
if 8 - n <= 15 - len(s):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "o":
        count += 1
        
if ((15 - len(s)) + count) >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
import sys

s = input()
count = 0

for i in range(len(s)):
    if s[i] == 'o':
        count += 1

if count > 7:
    print('YES')
    sys.exit()

#print(count)
rest = 8 - count

#if count > 7:
if 15 - len(s) >= rest:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
count = 0

for i in range(len(s)):
    if s[i] == 'x':
        count += 1
if count >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

S = input()

len_S = len(S)
win_number = S.count('o')

if (15 - len_S) + win_number >= 8: 
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
''' بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ '''
#codeforces507A
from collections import Counter
gi = lambda : list(map(int,input().strip().split()))
s = input()
print("YES" if (s[:15]+ "o"*(15 - len(s))).count("o") >= 8 else "NO")

Submission status: Accepted

Solution code:
A=list(input())
sumWin = 0
sumLose = 0
for i in A:
    if i == 'o':
        sumWin += 1
    elif i == 'x':
        sumLose += 1
if sumLose >= 8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
S = input()
numO = 0
for i in range(len(S)):
    if S[i] == 'o':
        numO += 1

passedDay = len(S)

if (15 - passedDay) + numO >= 8:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

Submission status: Accepted

Solution code:
S = input()
r = 0
for s in S:
    if s == "x":
        r += 1
if r < 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input().ljust(15, "o")
if s.count("o") >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
c = 0
t = 15
for s in S:
    t -= 1
    if s == 'o':
        c+= 1

print('YES' if c+t>=8 else 'NO')

Submission status: Accepted

Solution code:
s = input()
size = len(s)
if size <= 15 :
    count = 0
    for i in range(size):
        if s[i] == "x" :
            count += 1
    if count >= 8 : print("NO")
    else : print("YES")

Submission status: Accepted

Solution code:
S=input()
k=len(S)
if S.count('o') + (15-k) >= 8:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
s=input()
k=len(s)
win=s.count("o")
if 8-(15-k) <= win:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
S = list(input())

cnt = 0
for i in S:
    if(i == "x"):
        cnt +=1
        
if(15-cnt)>7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
from sys import stdin

def main():
    n = stdin.readline().rstrip()

    if 8 <= n.count('x'):
        print('NO')
    else:
        print('YES')
    
if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
S=input()
judge=S.count('o')+15-len(S)
if judge>=8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
r = input()
maru = r.replace("x","")
rLength = len(r)
maruCount = len(maru)
remain = 15-rLength
if(maruCount + remain >= 8 ):
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
S = input()
count = 0
for e in S:
    if e == 'o':
        count += 1
_s = len(S)
if (15 - _s) + count >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S =raw_input()
l = len(S)
k = 0
for i in range(l):
    if S[i] =='o':
        k+=1
if k+15-l>=8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = str(input())

w = s.count("o")
l = s.count("x")

if (l < 8):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = list(input())
win = S.count('o')

if win >= 8 - (15 - len(S)):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S = input()
c = S.count('x')
if c >= 8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
S = input()
v = S.count('o')
l = len(S)
if 15 - l + v < 8:
  print('NO')
else:
  print('YES')

Submission status: Accepted

Solution code:
S = list(input())
n_game = len(S)
n_rest_game = 15 - n_game
n_win = 0
n_lose = 0

for s in S:
    if s == 'o':
        n_win += 1
    else:
        n_lose += 1
if 8 - n_win <= n_rest_game:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s = input()
win = s.count('o')
lose = s.count('x')
ans = 'NO'
if 15 - (win + lose) + win >= 8:
    ans = 'YES'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s.count("o") > 7:
    print("YES")
elif 8 - s.count("o") <= 15 - len(s):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
str=input()
n=len(str)
count=0
for a in range(n):
    if str[a]== "o":
        count +=1

if count+15-n>=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
if 15-len(s)+s.count('o') >= 8:
    ans = 'YES'
else:
    ans = 'NO'
print(ans)

Submission status: Accepted

Solution code:
S = input()
wl = list(S)
N = len(S)
win = 0

for i in range(N):
    if S[i] == "o":
        win = win + 1

if (15-N)+win >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

#win = S.count("o")
lose = S.count("x")

if lose <= 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
counter = 0

for i in range(len(s)):

    if s[i] == "o":
        counter += 1

a = 15 - len(s) + counter

if  a >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = list(input())

if S.count('x') < 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
def input_from_console():
    s = input().rstrip()
    return s


def solve(s):
    if s.count('o') + 15 - len(s) >= 8:
        return 'YES'
    return 'NO'


def main():
    s = input_from_console()
    print(solve(s))


if __name__ == "__main__":
    import sys

    if sys.gettrace():  # Check if the python interpreter is in debug mode or not.
        check_cases()
    else:
        main()

Submission status: Accepted

Solution code:
S = input()
if (S.count('o') + (15 - len(S))) >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S=input()
if S.count('x') >= 8:
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
s=input()
k=len(s)
ans=0
for i in range(k):
    if s[i]=='x':
        ans+=1
if 8<=ans:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s=input()
if len(s)<=7:
    print("YES")
elif s.count("o")+(15-len(s))>=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
o_, x_ = 0, 0
for s in S:
    if s == "o":
        o_ += 1
    else:
        x_ += 1
if o_ > 7 - (15-len(S)):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
a = S.count("x")

if a <= 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
def main():
    S = input()
    n = 15 - len(S)
    win = S.count('o') + n
    
    if win >= 8:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print('YES' if input().count('x') <= 7 else 'NO')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 
import math
import sys
import itertools
import numpy as np

# 
sumo = list(input())
lose = 0
for i in range(len(sumo)):
    if sumo[i] == 'x':
        lose += 1
if lose >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
S = input()
s = []
for c in S:
  s.append(c)


count = 0
for i in range(len(s)):
  if s[i]=='x':
    count += 1
    
if count <= 7:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
S = input()
lS = list(S)

print('NO') if lS.count('x') >= 8 else print('YES')

Submission status: Accepted

Solution code:
S = input()
count = 0
for s in S:
    if s == "o":
        count += 1

if 8 - count > 15 - len(S):
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
s=input()
k=len(s)
a=0
for i in range(k):
  if s[i]=="x":
    a=a+1
if a<=7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
''' 
------------------------
author : iiou16
------------------------
'''

def main():
    S = input()

    win = S.count("o")

    if (15 - len(S)) + win >= 8:
        print("YES")
    else:
        print("NO")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = list(input())
a = S.count('x')
if a <= 7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
N = input()
N_len = len(N)
remain = 15 - N_len
count = int(N.count("o"))
if count >= 8:
  print("YES")
elif count + remain >= 8:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
S = input()

loss = 0
for s in S:
 if s == 'x':
  loss += 1

if loss>=8:
 print('NO')
else:
 print('YES')

Submission status: Accepted

Solution code:
s = list(input())
count = 0
total = 0
for i in range(len(s)):
    total += 1
    if s[i] == 'o':
        count += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
cnt = s.count('o')
rest = 15 - len(s)
ans = 'YES' if cnt + rest >= 8 else 'NO'
print(ans)

Submission status: Accepted

Solution code:
S = input()
print("YES" if S.count("x")<=7 else "NO")

Submission status: Accepted

Solution code:
s=input()
l=s.count("x")

if l>=8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:

lst_A = list(input())
count = 0
ans = "YES"
for i in range (len(lst_A)):
    if lst_A[i] == "x":
        count += 1
        if count == 8:
            ans = "NO"
            break

print(ans)

Submission status: Accepted

Solution code:
result = list(input())
count = 0
for i in result:
    if i == "x":
        count += 1
if count >= 8:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
S = input()
if S.count("x")<8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
print('YES' if (input().count('x') < 8) else 'NO')

Submission status: Accepted

Solution code:
S = input()

if 7 < S.count('x'):
    print('NO')
else:
    print('YES')

Submission status: Accepted

Solution code:
S = str(input())

l = len(S)
w = S.count("o")

possible_w = 15 - l

ans = "NO"
if w + possible_w >= 8:
    ans = "YES"

print(str(ans))

Submission status: Accepted

Solution code:
def sumo(S: str)->int:
    left = 15-len(S)
    wins = sum(c == 'o' for c in S)

    return left + wins >= 8


if __name__ == "__main__":
    S = input()

    yes = sumo(S)
    print('YES' if yes else 'NO')

Submission status: Accepted

Solution code:
s = str(input())

n = len(s) - s.count("o")
if n < 8:
  ans = "YES"
else:
  ans = "NO"
print(ans)

Submission status: Accepted

Solution code:
S = input()
WinNum = S.count('o')


if(15-len(S) >= (8-WinNum)):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
results = list(input())
c = results.count('x')
if c >= 8:
  print('NO')
else:
  print('YES')

Submission status: Accepted

Solution code:
s=list(input())
count=0
for i in range(len(s)):
  if s[i]=="o":
    count = count +1
if 15-len(s)+count>=8:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
s = list(input())
l = len(s)
maru = 0
batu = 0
for a in s:
    if a == "o":
        maru += 1
    else:
        batu += 1
nokori = 15-l
if (nokori+maru)>=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
lose = s.count('x')
if lose > 7:
    print('NO')

else:
    print('YES')

Submission status: Accepted

Solution code:
S = input()

c=0
for i in S:
    if i == "o":
        c+=1

if c + 15 - len(S) >=8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
r = input()
s = len(r)
w = r.count('o')
if (w + 15 - s) > 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
s = input()
print("YES" if s.count("o") + 15 - len(s) > 7 else "NO")

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)
def lmi(): return list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
s = input()
cnt = 0
for i in s:
  if i=="o":
    cnt += 1
if cnt+(15-len(s)) > 7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
S = input()
k = len(S)
num = 0
for i in range(k):
    if S[i] == "x":
        num += 1

if 15 - num >= 8:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
k=input()
if k.count('o') ==7 and k.count('o') == 7:
    print('YES') 
elif k.count('x') < 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
S = input()

if S.count("x") <= 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
S = input()
if S.count('x') > 7:
  print('NO')
else:
  print('YES')

Submission status: Accepted

Solution code:
###template###
import sys
def input(): return sys.stdin.readline().rstrip()
def mi(): return map(int, input().split())
###template###

S = input()

#残り日数
ls = 15 - len(S)
win = S.count('o')

if win + ls >= 8: print('YES')
else: print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
print('YNEOS'[s.count('o') + 15 - len(s) < 8::2])

Submission status: Accepted

Solution code:
s = input()
k = len(s)
k = 15 - k
ans = 0
for i in s:
    if i == 'o':
        ans += 1
ans += k
if ans >= 8:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
s=input()
v=[]
d=[]
for i in range(len(s)):
  if s[i] == 'o':
    v.append(1)
  elif s[i] == 'x':
    d.append(1)
if len(v)>=8:
  print ('YES')
else:
  if len(d)>=8:
    print ('NO')
  elif 15-(len(v)+len(d))+len(v)>=8:
    print('YES')