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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys;
import string;
sys.setrecursionlimit(20000) # 再起呼び出しの最大数をセット

import copy
import itertools

from functools import lru_cache
#@lru_cache(maxsize = None)

# 整数の入力
#n = int(input())

# スペース区切りの整数の入力
#a = [x for x in map(int, input().split())]
#n, m = map(int, input().split())
#print("sp", n, q, file=sys.stderr)

# 改行区切りの整数の入力
#a = []
#for x in range(m):
#  a.append([int(x) for x in input().split()])
#p = [int(x) for x in input().split()]

# 文字列の入力
s = input()

# 出力
#print("{} {}".format(a+b+c, s))
#a.sort()
#print(set(a), file=sys.stderr)
#print(len(set(a)))

#cache = dict()


def doit(s):
  ok = True
  for x in range(m):
    res = 0
    for y in range(a[x][0]):
      if s[a[x][y+1]-1] == 1:
        res = res + 1
    #print("res", res, file=sys.stderr)
    if res % 2 != p[x]:
      ok = False
      break
  #print("ok", ok, file=sys.stderr)
  return ok

def createSw(n):
  if n <= 1:
    return [[0,], [1,]]

  ret = []
  for x in createSw(n-1):
    #print("sw0", x, file=sys.stderr)
    ret.append(x + [0])
    ret.append(x + [1])
    #print("ret", ret, file=sys.stderr)
  #print("ret", ret, file=sys.stderr)
  return ret

#print(doit([0] * 4))
try:
  res = 0
#  for x in createSw(n):
#  for x in itertools.product(range(2), repeat=n):
#    print("x", x, file=sys.stderr)
#    if doit(x):
#      res = res + 1
#  print((n-3)*180)
  l = len(s)
  for x in s:
    if x == 'x':
      res += 1
  print(15 - l, 8 - res, file=sys.stderr)
  if 15 - l < 8 - res:
    print("NO")
  else:
    print("YES")
except Exception as e:
  print("e", e, file=sys.stderr)

Submission status: Wrong Answer

Solution code:
S=input()

b=S.count('x')
print(b)
if((15-b)>=8):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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")
print(num)
if num <= 7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
S=input()

b=S.count('x')
print(b)
if((15-b)>=8):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S = str(input())

circles = 0
crosses = 0

length = len(S)


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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
l = list(map(str, input().split()))
if(l.count("o")>7):
    print("YES")
elif(l.count("x")+l.count("o") < 8):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
S = str(input())

circles = 0
crosses = 0

length = len(S)
for i in S:
    print(i)
    if i == 'o':
        circles += 1
    else:
        crosses += 1

if 15 - crosses >= 8:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s=input()

l=len(s)
count=0

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

f=15-l

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
a=S.count('○')
b=S.count('✕')

if((15-b+a)>=8):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
c = S.count('o')
r = S.rfind('o')+1
if r == 0: r = len(S)
d = 14 - r
if c+d > 7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

if S.count('o') >= 8:
    print('YES')

else:
    print('NO')

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
s=list(input().split())

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

Submission status: Wrong Answer

Solution code:
s=input()
makeban=0
for i in s:
    if i=="o":
        makeban+=1
if makeban<=7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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


def main():
	c = 0
	s = input()
	for t in s:
		if t == 'o':
			c += 1
		print(t, c)
	
	if c >= 8:
		print('YES')
	else:
		print('NO')


if __name__ == '__main__':
	import sys
	sys.exit(main())

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

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

#print(count)
rest = 8 - count

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = input()

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

if loss>=8:
 print('no')
else:
 print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
s=input()
makeban=0
for i in s:
    if i=="o":
        makeban+=1
if makeban<=8:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 count_o >= count_x:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s=input()

l=len(s)
count=0

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

f=15-l


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

Submission status: Wrong Answer

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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

Submission status: Wrong Answer

Solution code:
l = list(map(str, input().split()))
if(l.count("x") > 7):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
data = input()
x = data.count("o")
if x + 15-len(data) >= 8:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

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

#print(count)
rest = 8 - count

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

Submission status: Wrong Answer

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

print('No') if lS.count('x') >= 8 else print('Yes')

Submission status: Wrong Answer

Solution code:
S = input()

if 7 >= S.count('×'):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = list(map(str, input().split()))
n=n[0]

yes=0
no=0


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = input()

print('YES' if sum(s=='o' for s in S) >= 8 else 'NO')

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
from sys import stdin
import math
import itertools


def makeIntMatrix(lines):
    intMatrix = []
    for a in makeStringMatrix(lines):
        intMatrix.append([int(b) for b in a])
    return intMatrix
 
 
def makeStringMatrix(lines):
    stringMatrix = [line.split() for line in lines]
    return stringMatrix
 
 
def makeInt(line):
    return int(line.rstrip())
 
 
def makeMultiInteger(line):
    return [int(x) for x in line.rstrip().split()]


def solve(input_string):
    a = input_string[0].rstrip()
    c = 0
    for i in a:
        if i == 'o':
            c += 1
    if c >= 7:
        return 'YES'
    else:
        return 'NO'





def main():
    input_lines = stdin.readlines()
    answer = solve(input_lines)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math

n = list(map(str, input().split()))
n=n[0]

yes=0
no=0


print(yes,no)
if(no>=8):
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

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

if(15-len(S) >= (8-WinNum)):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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 = (15-len(s)) + s.count("o")

if num >= 8:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

S = input()

lose = 0
for i in range(len(S)):
    if S[i] == "x":
        lose += 1

if lose >= 8:
    print("No") 
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S = [str(i) for i in input().split()][0]

count = S.count('o')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    s=str(input())
    v=s.count('o')
    v+=15-len(s)
    if(v<8):
        print("No")
    else:
        print("Yes")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Submission status: Wrong Answer

Solution code:
S=str(input())
N=S.count('o')
if N>=8:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())

win = 0
for i in s:
    if(i == "o"):
        win += 1
        
win += 15- len(s)

if(win >= 8):
    print("Yes")
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
r = 0
for s in S:
    if s == "o":
        r += 1
if r >= 7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
S = input()
c = S.count('o')
r = S.rfind('o')
d = 13 - r
if c+d > 7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if(len(s) < 15):
	rem = 15 - len(s)
	s = s + s[:rem]
# print(len(s))
p = s.count('o')
# print(p)
if p >= 8:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
S = input()

if S.count("x") > 7:
    print('NO')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline



def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [S] = [(input_raw[0])]
    count_x= 0
    for s in S:
        if s == "x":
            count_x += 1
    if count_x >= 8:
        print "No"
    else:
        print "Yes"


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
S = input()
o = S.count("x")
if 15 - o >= 8:
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = list(input())
win= lose = 0
for i in s:
    if i =='o':
        win += 1
    else:
        lose += 1
if win >= 8:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print('Yes') if lS.count('o') + 15 - len(lS) >= 8 else print('No')

Submission status: Wrong Answer

Solution code:
S = input()
cnt = 0

for s in S:
    if s == "x":
        continue

    else:
        cnt += 1

if len(S) <= 14 and cnt >= 7:
    print("YES")
elif len(S) == 15 and cnt >= 8:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import atexit
import io
import sys

buff = io.BytesIO()
sys.stdout = buff


@atexit.register
def write():
    sys.__stdout__.write(buff.getvalue())


s = raw_input()
if s.count('o') >= 7:
	print 'YES'
else:
	print 'NO'

Submission status: Wrong Answer

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

if c >= 8:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if 15 - len(s) + s.count("o") < 8:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
import itertools as it
import collections as col
import heapq
import sys
sys.setrecursionlimit(10**9)
S=list(input())
T=[c for c in S if c == 'o']
print("YES" if len(T) + (15 - len(S)) >= 8 else "No")

Submission status: Wrong Answer

Solution code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    s=str(input())
    v=s.count('x')
    if(15-v<8):
        print("No")
    else:
        print("Yes")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Submission status: Wrong Answer

Solution code:
S = input()
o = S.count("o")
x = S.count("x")
ans = "NO"
if len(S) == 15:
  if o >= 8:
    ans = "YES"
elif o >= 7 and x <= 7:
  ans = "YES"
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
win_no = 0
for match in S:
    if match == "o":
        win_no += 1
    
if win_no + 15 - len(S)>= 8:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=raw_input()
count=0
for i in s:
    if i == "o":
        count += 1
if count>=8:
    print "YES"
else:
    print "NO"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()


w = 0
l = 0
for s in S:
    if s == 'o':
        w+=1
    else:
        l+=1

if (15 - len(S) + w >=8):
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = input()
print('YES' if sum([1 for ch in S if ch == 'o']) >= 7 else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str

def solve(S: str):
    if(S.count('o') >= 8):
        print(YES)
    else:
        print(NO)
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N=input()
if N.count('o')+15-len(N) >=8:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = list(input())
if s.count("o") < 8 and s.count("x") < 8:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s=input()
a=s.count("x")
if(a>7):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()
x = 15 - len(S)
y = 8 - S.count("o")
ans = "Yes" if x - y >= 0 else "No"
print(ans)

Submission status: Wrong Answer

Solution code:
# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

readl= lambda: list(map(int, sys.stdin.readline().split()))
readt= lambda: tuple(map(int, sys.stdin.readline().split()))
read = lambda: sys.stdin.readline().rstrip()
readi = lambda: int(read())
readmi = lambda: map(int, sys.stdin.readline().split())
readms = lambda: map(str, sys.stdin.readline().split())

t = read()
count = 0
for i in list(t):
    if i == 'o':
        count += 1
if count >= 7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
S = input()
cnt = 0

for s in S:
    if s == "x":
        continue

    else:
        cnt += 1

if len(S) <= 14 and cnt >= 7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
S = input()

print('YES' if sum(s=='o' for s in S) else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    S = input()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
s_num=len(s)
t=""
t+=s+"o"*(15-s_num)
s_win=t.count("o")
print(["NO","YES"][s_win>=8])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
n = len(s)
count_win = s.count('o')
count_trial = 15 - n

if count_trial >= 8 - count_win:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = input()
    x = 15 - len(s)

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()
w = 0
for item in s:
    if item == 'o':
        w += 1

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
'''
Created on 2020/09/06

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  S=pin()[:-1]
  t=S.count("o")
  u=len(S)
  if 15-u+t>=8:
    print("YES")
  else:
    print("NO")
  return 
main()

Submission status: Accepted

Solution code:
 
s=input()
k=15-len(s)
if s.count('o')+k >= 8:
    print('YES')
else:
    print('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=list(input())
sum=15-len(S)
S.sort()
for i in S:
    if i=='o':
        sum+=1
    if sum>=8:
        print("YES")
        break
    if i=='x':
        print("NO")
        break

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()
    l = len(S)
    x = S.count("o")
    y = 15 - l

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# M-SOLUTIONS プロコンオープン: B – Sumo
S = input()

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

Submission status: Accepted

Solution code:
s=input()
n=len(s)
tmp=0
for i in range(n):
    if s[i]!="o":
        tmp+=1
if tmp>7:
    print("NO")
else:
    print("YES")

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
f=input();print("YNEOS"[f.count('o')+7<len(f)::2])