ZhenlongDai/ACPR huggingface dataset:
Problem: p02987
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = list(input())
s.sort()
cnt = 1
ans = 1
for i in range(1, 4):
  if s[i - 1] != s[i]:
    if cnt < 2:
      ans = 0
      break
    cnt = 1
  if not ans:
    break
if cnt > 2:
  ans = 0
if not ans:
  print("No")
else:
  print("Yes")


Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = list(input())
s.sort()
cnt = 1
ans = 1

for i in range(1, 4):
  
  if s[i - 1] != s[i]:
    if cnt < 2:
      ans = 0
      break
    cnt = -1
  if not ans:
    break
  cnt += 1
if cnt > 3:
  ans = 0
if not ans:
  print("No")
else:
  print("Yes")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
s.sort()
print(s)
if s[0] == s[1] and s[2] == s[3] and s[0] != s[2]:
    print("Yes")
else:
    print("No")

Failing test case input:
TPOQ

Expected output:
No


Actual output:
['O', 'P', 'Q', 'T']
No


Fixed submission (verdict: Accepted):
s = list(input())
s.sort()

if s[0] == s[1] and s[2] == s[3] and s[0] != s[2]:
    print("Yes")
else:
    print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0] == s[1] == s[2] == s[3]:
    print('No')
elif s[0] == s[1] and s[1] == s[2]:
    print('Yes')
elif s[0] == s[2] and s[1] == s[3]:
    print('Yes')
elif s[0] == s[3] and s[1] == s[2]:
    print('Yes')
else:
    print('No')

Failing test case input:
FFEE

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0] == s[1] == s[2] == s[3]:
    print('No')
elif s[0] == s[1] and s[2] == s[3]:
    print('Yes')
elif s[0] == s[2] and s[1] == s[3]:
    print('Yes')
elif s[0] == s[3] and s[1] == s[2]:
    print('Yes')
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
S = sys.stdin.readline()
S1 = S.replace(S[0],'')
if len(S1) == 0:
  print('No')
  exit()
  
S2 = S1.replace(S1[0],'')
if len(S1)== 2 and len(S2) == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
SOOS

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
S = str(sys.stdin.readline()).strip()

S1 = S.replace(S[0],'')
if len(S1) != 2:
  print('No')
  exit()
  
S2 = S1.replace(S1[0],'')
if len(S2) == 0:
  print("Yes")
else:
  print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
text = input()

text1 = text.strip(text[0])
text2 = text1.strip(text[0])

if len(text) == 4 and len(text1) == 2 and len(text2) == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
text = input()

text1 = text.replace(text[0], "")
try:
	text2 = text1.replace(text1[0], "")
except:
	text2 = "e"

if len(text) == 4 and len(text1) == 2 and len(text2) == 0:
  print("Yes")
else:
  print("No")
Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
S=sorted(S)
print(S)
if S[0] == S[1] != S[2] ==S[3]:
    print("Yes")
else:
    print("No")

Failing test case input:
PDGJ

Expected output:
No


Actual output:
['D', 'G', 'J', 'P']
No


Fixed submission (verdict: Accepted):
S = input()
S=sorted(S)

if S[0] == S[1] != S[2] ==S[3]:
    print("Yes")
else:
    print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

s = list(input())
s.sort()
if s[0] is s[1] and s[2] is s[3] and s[1] is not s[2]:
        print("Yes")
else:
        print("No")

Failing test case input:
EEFF

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = list(input())
s.sort()
if s[0] == s[1] and s[2] == s[3] and s[1] != s[2]:
        print("Yes")
else:
        print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
s = set(s[i] for i in range(len(s)))
if s==2:
    print('Yes')
else:
    print('No')

Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
s = len(set(s[i] for i in range(len(s))))
if s==2:
    print('Yes')
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
S = sorted(S)

if S[0] == S[1]:
    if S[2] == S[3]:
        if S[1] != S[3]:
            print('YES')
else:
    print('No')



Failing test case input:
SOOS

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
S = list(input())
S = sorted(S)

if S[0] == S[1] and S[2] == S[3] and S[1] != S[3]:
    print('Yes')
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
a=s[0]
if s.count(a)==2:
    s.strip(a)
    b=s[0]
    if s.count(b)==2:
        print("Yes")
else:
    print("No")

Failing test case input:
RR@C

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
a=s[0]
if s.count(a)==2:
    s2=s.strip(a)
    b=s2[0]
    if s2.count(b)==2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a = s[0]
b = s[1]
c = s[2]
d = s[3]
if a==b:
    if c==d:
        if a!=c: print("Yes")
        else: print("No")
    else: print("No")
elif a==d:
    if b==c: print("Yes")
else: print("No")

Failing test case input:
R@CR

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s = input()
a = s[0]
b = s[1]
c = s[2]
d = s[3]
if a==b:
    if c==d:
        if a!=c: print("Yes")
        else: print("No")
    else: print("No")
elif a==d:
    if b==c: print("Yes")
    else: print("No")
elif a==c:
    if b==d: print("Yes")
    else: print("No")
else: print("No")
Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

count = 0
fircnt = 0
before = ''
first = ''

cl = set()

for s in S:
    if s not in cl:
        count += 1
        cl.add(s)
        if first == '':
            first = s
    if first == s:
        fircnt += 1

print(count)
print(fircnt)
if count != 2:
    print('No')
elif fircnt == 2:
    print('Yes')
else:
    print('No')

Failing test case input:
QR?D

Expected output:
No


Actual output:
4
1
No


Fixed submission (verdict: Accepted):
S = input()

count = 0
fircnt = 0
before = ''
first = ''

cl = set()

for s in S:
    if s not in cl:
        count += 1
        cl.add(s)
        if first == '':
            first = s
    if first == s:
        fircnt += 1
if count != 2:
    print('No')
elif fircnt == 2:
    print('Yes')
else:
    print('No')

Problem: p02987
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()
if len(set(S))==2:
  if S[0]==S[1] or S[0]==S[2] or S[0]==S[3]:
    print("Yes")
  else:
    print("No")

Failing test case input:
TMOS

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
S = list(input())
S.sort()
if len(set(S))==2:
  if S[0]==S[1] and S[2]==S[3]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

li=list(input())
a=[0,0,0,0]
for i in range(4):
    a[i]=li.count(li[i]);
    if a[i]==2:
        continue
    else:
        print("No")
        sys.exit
print("Yes")


Failing test case input:
EEQG

Expected output:
No


Actual output:
No
No
Yes


Fixed submission (verdict: Accepted):
import sys

li=list(input())
a=[0,0,0,0]
for i in range(4):
    a[i]=li.count(li[i]);
    if a[i]==2:
        continue
    else:
        print("No")
        sys.exit()
print("Yes")

Problem: p02987
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = list(input())
S.sort()
print(S)
if len(set(S))==2:
  if S[0]==S[1] and S[2]==S[3]:
    print("Yes")
  else:
    print("No")

Failing test case input:
COGH

Expected output:
No


Actual output:
C, G, H, O

Fixed submission (verdict: Accepted):
S = list(input())
S.sort()
if len(set(S))==2:
  if S[0]==S[1] and S[2]==S[3]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S  = list(input())
dic = {}
f = False
for s in S:
  if s in dic:
    f = True
  else:
    dic[s] = 1
if f:
  print('Yes')
else:
  print('No')

Failing test case input:
EEQG

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S  = list(input())
dic = {}
for s in S:
  if s in dic:
    dic[s] += 1
  else:
    dic[s] = 1
for v in dic.values():
  if v != 2:
    print('No')
    quit()
print('Yes')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

s = sorted(s)

if s[0] == s[1] and s[2] == s[3]:
    print('Yes')


Failing test case input:
TRMP

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s = input()

s = sorted(s)

if s[0] == s[1] and s[2] == s[3] and s[1] != s[2]:
    print('Yes')
else:
    print('No')
Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())

if s[0] == s[1]:
    if s[2] == s[3] and s[0] != s[2]:
        print('Yes')
elif s[0] == s[2]:
    if s[1] == s[3] and s[0] != s[1]:
        print('Yes')
elif s[0] == s[3]:
    if s[1] == s[2] and s[0] != s[1]:
        print('Yes')
else:
    print('No')

Failing test case input:
ASRA

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s = str(input())

if s[0] == s[1]:
    if s[2] == s[3] and s[0] != s[2]:
        print('Yes')
    else:
        print('No')
elif s[0] == s[2]:
    if s[1] == s[3] and s[0] != s[1]:
        print('Yes')
    else:
        print('No')
elif s[0] == s[3]:
    if s[1] == s[2] and s[0] != s[1]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
c = 0

if s[0]==s[1]:
    c+=1
if s[0]==s[2]:
    c+=1
if s[0]==s[3]:
    c+=1
if s[1]==s[2]:
    c+=1
if s[2]==s[3]:
    c+=1

if c == 2:
    print('yes')
else:
    print('no')

Failing test case input:
RC@R

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s = list(input())
c = 0

if s[0]==s[1]:
    c+=1
if s[0]==s[2]:
    c+=1
if s[0]==s[3]:
    c+=1
if s[1]==s[2]:
    c+=1
if s[1]==s[3]:
    c+=1
if s[2]==s[3]:
    c+=1

if c == 2:
    print('Yes')
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0]==s[1] and s[0]==s[2] and s[2]==s[3]:
    print("Yes")
elif s[0]==s[2] and s[0]==s[1] and s[1]==s[3]:
    print("Yes")
elif s[0]==s[3] and s[0]==s[1] and s[1]==s[2]:
    print("Yes")
else:
    print("No")

Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0]==s[1] and s[0]!=s[2] and s[2]==s[3]:
    print("Yes")
elif s[0]==s[2] and s[0]!=s[1] and s[1]==s[3]:
    print("Yes")
elif s[0]==s[3] and s[0]!=s[1] and s[1]==s[2]:
    print("Yes")
else:
    print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
S_list = list(S)
print(S_list)
df = "Yes"
for i in range(0, 3):
    if S_list.count(S_list[i]) != 2:
        df = "No"
print(df)

Failing test case input:
OEBH

Expected output:
No


Actual output:
['O', 'E', 'B', 'H']
No


Fixed submission (verdict: Accepted):
S = input()
S_list = list(S)
df = "Yes"
for i in range(0, 3):
    if S_list.count(S_list[i]) != 2:
        df = "No"
print(df)

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if len(set(input().split())) == 2:
  print("Yes")
else:
  print("No")

Failing test case input:
EEFF

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
if len(set(input())) == 2:
  print("Yes")
else:
  print("No")
Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ABC_132_A():
    S = input()
    if ((S.count(S[0]) == 2) and (S.count(S[1]) ==2 )) or ( (S.count(S[0]) == 2) and (S.count(S[2]) ==2 )):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':

    ABC_132_A()

Failing test case input:
S@SC

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def ABC_132_A():
    S = input()
    if S.count(S[0]) != 2 or S.count(S[1]) != 2 or S.count(S[2]) != 2 or S.count(S[3]) != 2:
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':

    ABC_132_A()

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

n = S.count(S[0])
if not n == 2:
  print("No")
else:
  S = S.replace(S[0], "")
  if len(S) == 2:
    print("Yes")
  else:
    print("No")

Failing test case input:
SNOS

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()

n = S.count(S[0])
if not n == 2:
  print("No")
else:
  S = S.replace(S[0], "")
  if S.count(S[0]) == 2:
    print("Yes")
  else:
    print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
b = list(input())
if b[0] == b[1] and b[2] == b[3]:
  print("Yes")
else:
  print("No")



Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
b = sorted(list(input()))
if b[0] == b[1] != b[2] == b[3]:
  print("Yes")
else:
  print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_ = input()

input_str = set(input_)

input_str_arr = [s for s in input_str]

if input_.count(input_str_arr[0]) and input_.count(input_str_arr[0]):
  print("Yes")
else:
  print("No")

Failing test case input:
EHCO

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def consunt():
    if input_.count(input_str_arr[0]) and input_.count(input_str_arr[1]):
      print("Yes")
    else:
      print("No")

input_ = input()

input_str = set(input_)

input_str_arr = [s for s in input_str]

if len(set(input_str_arr))==2:
    consunt()
else:
    print("No")

Problem: p02987
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A = list(input())
B = set(A)
for b in B:
  if A.count(b) == 2:
    print("Yes")
    exit()
print("No")


Failing test case input:
R@CR

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
A = list(input())
B = set(A)
if len(B) == 2 and A.count(A[0]) == 2:
  print("Yes")
else:
  print("No")
Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0] == s[1] and s[2] ==s[3] and s[1] !=s[2]:
  print("Yes")
if s[0] == s[2] and s[1] ==s[3] and s[1] !=s[2]:
  print("Yes")
if s[0] == s[3] and s[1] ==s[2] and s[1] !=s[0]:
  print("Yes")
else:
  print("No")

Failing test case input:
EEFF

Expected output:
Yes


Actual output:
Yes
No


Fixed submission (verdict: Accepted):
s = input()
if s[0] == s[1] and s[2] ==s[3] and s[1] !=s[2]:
  print("Yes")
elif s[0] == s[2] and s[1] ==s[3] and s[1] !=s[2]:
  print("Yes")
elif s[0] == s[3] and s[1] ==s[2] and s[1] !=s[0]:
  print("Yes")
else:
  print("No")

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
if S[0]!=S[2] or S[0]!=S[3]:
    if S[0]==S[1] and S[2]==S[3]:
        print('YES')
    elif S[0]==S[3] and S[2]==S[1]:
        print('YES')
    elif S[0]==S[2] and S[3]==S[1]:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

Failing test case input:
TMOS

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a=input()
if a[0] is not a[2] or a[0] is not a[3]:
    if a[0] == a[1] and a[2] == a[3]:
        print('Yes')
    elif a[0] == a[3] and a[2] == a[1]:
        print('Yes')    
    elif a[0] == a[2] and a[3] == a[1]:
        print('Yes')
    else:
        print('No')
 
else:
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
S = sorted(S)
if S[0] == S[1] and S[2] == S[3] and S[1] != S[2] :
    print('YES')
else :
    print('NO')

Failing test case input:
RC?R

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
S = sorted(S)
if S[0] == S[1] and S[2] == S[3] and S[1] != S[2] :
    print('Yes')
else :
    print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S.count(S[0])==2 and S.count(S[1])==2 and S.count(S[2])==2:
  print('Yes')
print('No')

Failing test case input:
FFEE

Expected output:
Yes

Actual output:
Yes
No


Fixed submission (verdict: Accepted):
S = input()
if S.count(S[0])==2 and S.count(S[1])==2 and S.count(S[2])==2:
  print('Yes')
else:
  print('No')

Problem: p02987
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())

L = sorted(S)
if L[0]==L[1] and L[2]==L[3] and L[0]==L[2]:
    print('Yes')
else:
    print('No')

Failing test case input:
ASSA

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = list(input())

L = sorted(S)
if L[0]==L[1] and L[2]==L[3] and L[0]!=L[2]:
    print('Yes')
else:
    print('No')
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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


Failing test case input:
owoyowyoowowxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
r = 15 - len(S)
if S.count('o') + r >= 8:
    print('YES')
else:
    print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
n = len(s)
if(n < 8):
  print("YES")
else:
  if(s.count('○') + (15-n) >= 8):
    print("YES")
  else:
    print("NO")

Failing test case input:
xoxxwoxoxoooxo

Expected output:
YES


Actual output:
NO


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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
cnt=s.count('o')
l=len(s)
if 15-l+cnt>=8:
  print('Yes')
else:
  print('No')

Failing test case input:
xoxxxoooxowowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
cnt=s.count('o')
l=len(s)
if 15-l+cnt>=8:
  print('YES')
else:
  print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
r = 0
for s in  S:
    if s == "o":
        r += 1
if r >= 8:
    print("YES")
else:
    print("NO")


Failing test case input:
xoxzooxowoxowo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
r = 0
for s in S:
    if s == "x":
        r += 1
if r < 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s=input()
k=len(s)
import collections
c = collections.Counter(s)

win = c["o"]

if win-k>=23:
  print("YES")
else:
  print("NO")

Failing test case input:
xoxoyoxoyoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
k=len(s)
import collections
c = collections.Counter(s)
win = c["o"]

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()

if S.count("x") <= 7:
  print("Yes")
else:
  print("No")

Failing test case input:
xoyxwoxoxoooxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()

if S.count("x") <= 7:
  print("YES")
else:
  print("NO")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()

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

Failing test case input:
xoxxxoooxowowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
o=15-len(S)+S.count('o')

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input().count("×") > 7 :
    print("NO")
else :
    print("YES")


Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
if input().count("x") > 7:
  print("NO")
else:
  print("YES")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



 
import sys
import math



 

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


mod=1000000007
 

def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 

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")
    
    
    
    

if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Failing test case input:
owoxowyoowoxyo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):



 
import sys
import math



 

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


mod=1000000007
 

def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 

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")
    
    
    
    

if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())

if s.count('x') >= 8:
    print("No")
else:
    print("Yes")

Failing test case input:
oxowowxooxoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = str(input())

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
xoxoxoxoxoyoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
lS = list(S)

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


Failing test case input:
oxoyoxoxoxoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
lS = list(S)

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
print("NO" if s.count("x")>=7 else "YES")

Failing test case input:
oxoxoxoooxoxxx

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
print("NO" if s.count("x")>7 else "YES")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
k = len(S)
l = 15 - k
m =S.count("○")
if m + l>= 8:
    print("YES")
else:
    print("NO")


Failing test case input:
oooyoxoxoxxxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
k = len(S)
l = 15 - k
m =S.count("o")
if m + l>= 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("No" if input().count("x")>=8 else "Yes")

Failing test case input:
owoxowooowxxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
print("NO" if input().count("x")>=8 else "YES")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
l = len(s)
win = 0
for i in range(l):
  if s[i] == 'o':
    win += 1
if win + 15 - l >= 7:
  print('YES')
else:
  print('NO')

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
l = len(s)
win = 0
for i in range(l):
  if s[i] == 'o':
    win += 1
if win + 15 - l >= 8:
  print('YES')
else:
  print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

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

Failing test case input:
oywowooywoyowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()

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

Problem: p03024
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
k=S.count("o")
if k>=8:
  print("YES")
else:
  print("NO")

Failing test case input:
oxoxoyoxoxoxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S=input()
l=len(S)
k=S.count("o")
K=15-l
if k+K>=8:
  print("YES")
else:
  print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "X":
        count += 1
n = 15 - len(s) - count
if n >= 0:
    print("YES")
else:
    print("no")

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "x":
        count += 1
n = 15 - count
if n >= 8:
    print("YES")
else:
    print("NO")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YNeos"[input().count("x")>8::2])

Failing test case input:
xoxxxoooxowowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
print("YNEOS"[input().count("x")>=8::2])

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input()
count = 0
for i in A:
  if i == 'x':
    count += 1
b = len(A) - count
if 15-b > 7:
  print('Yes')
else:
  print('No')

Failing test case input:
xoxowoozwoxowo

Expected output:
YES


Actual output:
No


Fixed submission (verdict: Accepted):
A = input()
count = 0
for i in A:
  if i == 'o':
    count += 1
b = len(A) - count
if 15 - b > 7:
  print('YES')
else:
  print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

S = input()

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

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

Failing test case input:
xxxoxoooooxwxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

S = input()

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

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
o = S.count("x")
if 15 - o >= 8:
    print('YES')
else:
    print('No')

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
x = S.count("x")
if 15 - x >= 8:
    print('YES')
else:
    print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")


Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "x":
        count += 1
n = 15 - count
if n >= 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
count = 0

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


rest = 8 - count


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



Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
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()


rest = 8 - count


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

Problem: p03024
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

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

Failing test case input:
oxoxowxooxoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()

if 15 - len(S) + S.count('o') >= 8:
    print('YES')
else:
    print('NO')
Problem: p03024
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
if S.count('x')>8:
    print('No')
else:
    print('YES')

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
S=input()
if S.count('x')>=8:
    print('NO')
else:
    print('YES')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
l=s.count("x")

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


Failing test case input:
owoxowzooxoxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
l=s.count("x")

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input()
x = data.count("o")
if x + 15-len(data) >= 8:
    print("yes")
else:
    print("no")


Failing test case input:
oooyooywoxxxox

Expected output:
YES


Actual output:
yes


Fixed submission (verdict: Accepted):
data = input()
x = data.count("o")
if x + 15-len(data) >= 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
if S.count('x')>=8:
    print('No')
else:
    print('YES')

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
S=input()
if S.count('x')>=8:
    print('NO')
else:
    print('YES')

Problem: p03024
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
if n.count('o') >= 8:
  print("YES")
else:
  print("NO")

Failing test case input:
xoxoyoxoyoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if 15-len(n) + n.count('o') >= 8:
  print("YES")
else:
  print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

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

Failing test case input:
oxoxovoxoxoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()

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

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
c=0
n = list(map(str, s))
print(n)

for i in n :
    if i == 'o' :
        c +=1
        
if c >= 8 or (8-c) == 15 - len(n) :
    print('YES')
else :
    print('NO')

Failing test case input:
xoxowoozwoxowo

Expected output:
YES


Actual output:
['x', 'o', 'x', 'o', 'w', 'o', 'o', 'z', 'w', 'o', 'x', 'o', 'w', 'o']
YES


Fixed submission (verdict: Accepted):
s = input()
c=0
n = list(map(str, s))

for i in n :
    if i == 'o' :
        c +=1
        
if c >= 8 or (8-c) <= 15 - len(n) :
    print('YES')
else :
    print('NO')
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
match=list(input())
lmatch=len(match)
cmaru=match.count("○")
print(cmaru)
cnt=15-lmatch+cmaru

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

Failing test case input:
oxxowooywoyowo

Expected output:
YES


Actual output:
0
NO


Fixed submission (verdict: Accepted):
match=input()
match=list(match)
lmatch=len(match)
cmaru=match.count("o")

cnt=15-lmatch+cmaru


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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
a=0
for i in range(len(s)):
    if s[i]=="o":
        a+=1
if a>=8:
    print('YES')
else:
    print('NO')

Failing test case input:
owxoowoxoozxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
a=0
for i in range(len(s)):
    if s[i]=="o":
        a+=1
if a+15-len(s)>=8:
    print('YES')
else:
    print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
oooyooyxoxxxox

Expected output:
YES


Actual output:
o
o
o
y
o
o
y
x
o
x
x
x
o
x
YES


Fixed submission (verdict: Accepted):
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')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
wxxowoooooxowy

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
if s.count("o") >= 8:
    print("YES")
else:
    print("NO")

Failing test case input:
xoxoyoxoxoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s = str(input())
if 15-len(s)+s.count("o") >= 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print("YES" if s.count("o") >= 8 else "NO")

Failing test case input:
xoxxxoxoyoyooo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
print("YES" if s.count("o") + 15-len(s) >= 8 else "NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
n = len(s)
if(s.count('○') + (15-n) >= 8):
  print("YES")
else:
  print("NO")

Failing test case input:
oxxxoooooxowxx

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
n = len(s)
if(s.count('o') + (15-n) >= 8):
  print("YES")
else:
  print("NO")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
xoxowooxwoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
rest = 15- len(s)
print('Yes') if s.count('o') + rest >=8 else print('NO') 

Failing test case input:
xoxoyoxoxoxoxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
rest = 15- len(s)
print('YES') if s.count('o') + rest >=8 else print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s= input()
day= len(s)
win = s.count('o')
possibility = 15 - day + win

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

Failing test case input:
oxoxovoooxoxxx

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

s= input()
day= len(s)
win = s.count('o')
possibility=15-day+win

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s= input()
day= len(s)
win = s.count('o')
possibility=day+win

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

Failing test case input:
xoxowoxoxoxoxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

s= input()
day= len(s)
win = s.count('o')
possibility=15-day+win

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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


Failing test case input:
xoxoxooxwoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
string = input()
sum_of_x = 0
for i in string:
    if i == 'x':
        sum_of_x += 1

if 15-len(string) >= sum_of_x:
    print("YES")
else:
    print("NO")

Failing test case input:
oxoxowxooxoxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
string = input()
sum_of_o = 0
for i in string:
    if i == 'o':
        sum_of_o += 1
 
if 15-len(string) >= 8 - sum_of_o:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
xoxxwooowowowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
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')
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

t = S.count("x")
if t <= 7:
    print("Yes")
else:
    print("No")
    


Failing test case input:
xoxoyoxoxoxoxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()

t = S.count("x")

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = [str(i) for i in input().split()][0]

count = S.count('o')

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

Failing test case input:
oxoyoxoooxxxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = [str(i) for i in input().split()][0]

count = S.count('x')

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

Problem: p03024
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print('YES' if input().count('o')>=8 else 'NO')

Failing test case input:
owoyowyoowowyo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
print('YES' if S.count('o')+(15-len(S))>=8 else 'NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

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

Failing test case input:
oxoyoxoxoxoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

else:
    print('NO')


Failing test case input:
ooxoxoxxxoyoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()

15 - len(S)

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

else:
    print('NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

s = input()

if 'x'.count(s) <= 7:
  print('Yes')
else:
  print('No')

Failing test case input:
oxowoyoxoyoxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

s = input()

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('NO' if input().count('x')>6 else 'YES')

Failing test case input:
oxoxoxoxoxoxox

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
print('NO' if input().count('x')>7 else 'YES')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input().count("o")
if s>=8:
    print("YES")
else:
    print("NO")


Failing test case input:
oxoxowoxoxoxox

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
t=s.count("o")
b=s.count("x")
if t+15-len(s)<8:
    print("NO")
else:
    print("YES")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
string = input()
sum_of_x = 0
for i in string:
    if i == 'x':
        sum_of_x += 1
 
if 15-len(string) > sum_of_x:
    print("YES")
else:
    print("NO")

Failing test case input:
xoxovooxwoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
string = input()
sum_of_o = 0
for i in string:
    if i == 'o':
        sum_of_o += 1
 
if 15-len(string) >= 8 - sum_of_o:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
o = s.count('o')
ans = "YES" if o + (15 - len(s)) >= 7 else "NO"
print(ans)

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
o = s.count('o')

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

Problem: p03024
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s=input()
makeban=0
for i in s:
    if i=="o":
        makeban+=1
if makeban<=8:
    print("YES")
else:
    print("NO")

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s=input()
makeban=0
for i in s:
    if i=="x":
        makeban+=1
if makeban<=7:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if(len(s) < 15):
	rem = 15 - len(s)
	s = s + s[:rem]

p = s.count('o')

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

Failing test case input:
xoooxoooyxxyxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()




rem = 15 - len(s)
p = s.count('o') + rem

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
K, L = len(S), S.count("x") 
print("Yes" if  15 >= 8 + L else "No")

Failing test case input:
oxxoxooxwoxoxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = list(input())
K, L = len(S), S.count("x")
print("YES" if -L + 15 >= 8 else "NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
xwooxoozoyyxoo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
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")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=[x for x in input()]

if(s.count('x')>7):
  print("No")
else:
  print("Yes")

Failing test case input:
oxxowooywoxowo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=[x for x in input()]

if(s.count('x')>7):
  print("NO")
else:
  print("YES")
Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')

Failing test case input:
yoxowoxoxoxoxo

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "X":
        count += 1
n = 15 - len(s) - count
if n > 0:
    print("YES")
else:
    print("no")

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
count = 0
for i in range(len(s)):
    if s[i] == "x":
        count += 1
n = 15 - count
if n >= 8:
    print("YES")
else:
    print("NO")

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
no = s.count('o')
r = 15 - len(s)

print('Yes' if r + no >= 8 else 'No')


Failing test case input:
xoxoxoxoxoxoxo

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
no = s.count('o')
r = 15 - len(s)

print('YES' if r + no >= 8 else 'NO')

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import sys
import copy

sys.setrecursionlimit(1000000)





S = input().rstrip()

win = 0
length = len(S)

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

win += 15 - length

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


Failing test case input:
oooyoxoxoxxxox

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):


import sys
import copy

sys.setrecursionlimit(1000000)





S = input().rstrip()

win = 0
length = len(S)

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

win += 15 - length

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

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
oxoxoxoooxoxxx

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
o = S.count("o")
x = S.count("x")
n = 15-o-x
ans = "NO"
if n+o >= 8:
  ans = "YES"
print(ans)

Problem: p03024
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input().split())

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

Failing test case input:
xxxxxxxx

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s=list(input())

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