ZhenlongDai/ACPR huggingface dataset:
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = map(int,input().split())
cnt = 0
t = sorted(s)

for i in range(n):
    a = t[i]
    for j in range(i, n):
        b = t[j]
        for k in range(j, n):
            c = a + b
            if t[k] != c and a != b and b != t[k] and a != t[k]:
                cnt += 1
print(cnt)

Failing test case input:
10
16 4 3 1 2 6 7 1 13 0

Expected output:
8


Actual output:
102


Fixed submission (verdict: Accepted):
n = int(input())
s = map(int,input().split())
cnt = 0
t = sorted(s)
 
for i in range(n):
    a = t[i]
    for j in range(i+1, n):
        b = t[j]
        for k in range(j+1, n):
            c = a + b
            if t[k] < (a+b) and a < (b+t[k]) and b < (a+t[k]) and a != b and b != t[k] and a != t[k]:
                cnt += 1
print(cnt)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))

if n <= 2:
  print(0)
  exit()

cnt=0
l.sort()
for i in range(n):
  for j in range(i,n):
    for k in range(j,n):
      if (l[i]!=l[k]!=l[j]) and (l[i]+l[j]>l[k]):
        cnt += 1
        
print(cnt)

Failing test case input:
6
0 5 7 7 12 1

Expected output:
0


Actual output:
5


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))

if n <= 2:
  print(0)
  exit()

cnt=0
for i in range(n-2):
  for j in range(i,n-1):
    for k in range(j,n):
      if ((l[i]!=l[j]) and (l[j]!=l[k]) and (l[k]!=l[i])) and (l[i]+l[j]>l[k]) and (l[k]+l[j]>l[i]) and (l[k]+l[i]>l[j]):
        cnt += 1
        
print(cnt)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
L = [int(i) for i in input().split()]

ans = 0
for i in range(N):
    for j in range(i):
        for k in range(j):
            if L[i] != L[j] != L[k] and L[i] + L[j] > L[k] and L[i] + L[k] > L[j] and L[j] + L[k] > L[i]:
                ans += 1
print(ans)


Failing test case input:
10
16 4 3 1 2 12 13 1 13 0

Expected output:
11


Actual output:
12


Fixed submission (verdict: Accepted):
N = int(input())
L = [int(i) for i in input().split()]

ans = 0
for i in range(N):
    for j in range(i):
        for k in range(j):
            if L[i] != L[j] and L[j] != L[k] and L[k] != L[i] and L[i] + L[j] > L[k] and L[i] + L[k] > L[j] and L[j] + L[k] > L[i]:
                ans += 1
print(ans)
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
L = [int(i) for i in input().split()]

ans = 0
for i in range(N):
    for j in range(i):
        for k in range(j):
            if L[i] != L[j] and L[j] != L[k] and L[k] != L[i] and L[i] + L[j] > L[k] and L[i] + L[k] > L[j] and L[j] + L[k] > L[i]:
                print(L[i],L[j],L[k])
                ans += 1
print(ans)


Failing test case input:
5
4 -3 0 7 5

Expected output:
1


Actual output:
5 7 4
1


Fixed submission (verdict: Accepted):
N = int(input())
L = [int(i) for i in input().split()]

ans = 0
for i in range(N):
    for j in range(i):
        for k in range(j):
            if L[i] != L[j] and L[j] != L[k] and L[k] != L[i] and L[i] + L[j] > L[k] and L[i] + L[k] > L[j] and L[j] + L[k] > L[i]:
                ans += 1
print(ans)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
l=list(map(int,input().split()))
res=0
if n<=2:
	print(0)
else:
	for i in range(n):
		for j in range(i,n):
			for k in range(j,n):
				if (l[i]!=l[j]) and (l[j]!=l[k]) and (l[i]+l[j]>l[k]) and (l[j]+l[k]>l[i]) and (l[k]+l[i]>l[j]):
					res+=1
	print(res)


Failing test case input:
10
9 11 14 2 9 11 7 6 7 8

Expected output:
66


Actual output:
73


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int,input().split()))
res=0
if n<=2:
	print(0)
else:
	for i in range(n):
		for j in range(i,n):
			for k in range(j,n):
				if (l[i]!=l[j]) and (l[j]!=l[k]) and (l[i]!=l[k]) and (l[i]+l[j]>l[k]) and (l[j]+l[k]>l[i]) and (l[k]+l[i]>l[j]):
					
					res+=1
	print(res)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int, input().split()))
cnt = 0
for i in range(len(l)):
    for j in range(i, len(l)):
        for k in range(j, len(l)):
            if i != j and j != k and k != i:
                if i <= j <= k <= n:
                    if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                        if l[i]+l[j] > l[k] and l[j]+l[k] > l[i] and l[k]+l[i] > l[j]:
                            cnt +=1
                            print(i, j, k)
print(cnt)

Failing test case input:
10
16 11 3 1 2 6 7 7 7 8

Expected output:
28


Actual output:
0 1 5
0 1 6
0 1 7
0 1 8
0 1 9
1 5 6
1 5 7
1 5 8
1 5 9
1 6 9
1 7 9
1 8 9
2 5 6
2 5 7
2 5 8
2 5 9
2 6 9
2 7 9
2 8 9
4 5 6
4 5 7
4 5 8
4 6 9
4 7 9
4 8 9
5 6 9
5 7 9
5 8 9
28


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int, input().split()))
cnt = 0
for i in range(len(l)):
    for j in range(i, len(l)):
        for k in range(j, len(l)):
            if i != j and j != k and k != i:
                if i <= j <= k <= n:
                    if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                        if l[i]+l[j] > l[k] and l[j]+l[k] > l[i] and l[k]+l[i] > l[j]:
                            cnt +=1
print(cnt)
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

def resolve():
    n = int(input())
    l = list(map(int,input().split()))
    out = 0
    if n < 3:
        print(0)
    else:
        for i in range(n-2):
            for j in range(i+1, n-1):
                for k in range(j+1, n):
                    if l[i] != l[j] and l[j] != l[k] and l[i] != l[k]:
                        if l[i] + l[j] > l[k] and l[i] + l[k] > l[j] and l[k] + l[j] > l[i]:
                            out += 1
    print(out)
resolve()    

Failing test case input:
2
9 0

Expected output:
0


Actual output:
0
0


Fixed submission (verdict: Accepted):
def resolve():
    n = int(input())
    l = list(map(int,input().split()))
    out = 0
    if n >= 3:
        for i in range(n-2):
            for j in range(i+1, n-1):
                for k in range(j+1, n):
                    if l[i] != l[j] and l[j] != l[k] and l[i] != l[k]:
                        if l[i] + l[j] > l[k] and l[i] + l[k] > l[j] and l[k] + l[j] > l[i]:
                            out += 1
    print(out)
resolve()

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))

ans = 0
x = 0

l.sort()


for i in l :
    z = x + 1
    for j in l[z:]:
        y =z + 1
        for k in l[y:]:
            if i != j != k and  i < j < k:
                    ans += 1

print(ans)

Failing test case input:
6
0 5 7 3 7 5

Expected output:
4


Actual output:
12


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))
l.sort(reverse = True)

ans = 0

for i in range(len(l)):
    for j in range(i+1,len(l)):
        for k in range(j+1,len(l)):
            if l[i] != l[j] != l[k] and l[i] < l[j] + l[k]:
                ans +=1

print(ans)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
li=list(map(int,input().split()))
ans=0
li.sort()
for i in range(0,n-2):
  for j in range(i+1,n-1):
    for k in range(j+1,n):
      if(li[i]+li[j]>li[k]):
        ans+=1
print(ans)

Failing test case input:
10
16 4 3 1 2 6 7 7 7 8

Expected output:
25


Actual output:
44


Fixed submission (verdict: Accepted):
n=int(input())
li=list(map(int,input().split()))
ans=0
li.sort()
for i in range(0,n-2):
  for j in range(i+1,n-1):
    for k in range(j+1,n):
      if(li[i]+li[j]>li[k] and len(set([li[i],li[j],li[k]]))>2):
        
        ans+=1
print(ans)
Problem: p02583
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
l = list(map(int, input().split()))
ans=0
for i in range(n-2):
    for j in range(i+1,n-1):
        for h in range(j+1,n):
            if l[i] != l[j] != l[h]:
                mnum = max(l[i],l[j],l[h])
                if mnum < l[i] + l[j] + l[h] - mnum:
                    ans+=1
print(ans)

Failing test case input:
6
1 5 6 3 5 5

Expected output:
3


Actual output:
7


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int, input().split()))
ans=0
for i in range(n-2):
    for j in range(i+1,n-1):
        for h in range(j+1,n):
            if l[i] != l[j] and l[i] != l[h] and l[j] != l[h]:
                mnum = max(l[i],l[j],l[h])
                if mnum < l[i] + l[j] + l[h] - mnum:
                    ans+=1
print(ans)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def mulit(a):
  a_copy = list(a)
  return len(a) == len(set(a_copy))

N = int(input())
A = list(map(int, input().split()))
A = sorted(A)
a_len = len(A)
answer = []
for i in range(0, a_len-2):
  for j in range(i+1, a_len-1):
    for k in range(j+1, a_len):
      answer.append([A[i], A[j], A[k]])

answer = [i for i in answer if mulit(i)]
answer_len = len(answer)
print(f"{answer_len}")

Failing test case input:
5
1 -9 0 1 0

Expected output:
0


Actual output:
4


Fixed submission (verdict: Accepted):
def mulit(a):
  a_copy = list(a)
  return len(a) == len(set(a_copy))
def isTriangle(x):
  return x[0] + x[1] > x[2]

N = int(input())
A = list(map(int, input().split()))
A = sorted(A)
a_len = len(A)
answer = []
for i in range(0, a_len-2):
  for j in range(i+1, a_len-1):
    for k in range(j+1, a_len):
      answer.append([A[i], A[j], A[k]])
      
answer = [i for i in answer if mulit(i)]
answer = [i for i in answer if isTriangle(i)]
answer_len = len(answer)
print(f"{answer_len}")
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from itertools import combinations 

N = int(input())
L_list = sorted(list(map(int, input().split())))
ans = 0

for x, y, z in combinations(L_list, 3):
  print(x, y, z)
  if x == y or y == z or z == x:
    continue
  if x + y > z and y + z > x and z + x > y:
    ans += 1

print(ans)


Failing test case input:
10
9 11 22 2 9 6 7 6 7 8

Expected output:
46


Actual output:
2 6 6
2 6 7
2 6 7
2 6 8
2 6 9
2 6 9
2 6 11
2 6 22
2 6 7
2 6 7
2 6 8
2 6 9
2 6 9
2 6 11
2 6 22
2 7 7
2 7 8
2 7 9
2 7 9
2 7 11
2 7 22
2 7 8
2 7 9
2 7 9
2 7 11
2 7 22
2 8 9
2 8 9
2 8 11
2 8 22
2 9 9
2 9 11
2 9 22
2 9 11
2 9 22
2 11 22
6 6 7
6 6 7
6 6 8
6 6 9
6 6 9
6 6 11
6 6 22
6 7 7
6 7 8
6 7 9
6 7 9
6 7 11
6 7 22
6 7 8
6 7 9
6 7 9
6 7 11
6 7 22
6 8 9
6 8 9
6 8 11
6 8 22
6 9 9
6 9 11
6 9 22
6 9 11
6 9 22
6 11 22
6 7 7
6 7 8
6 7 9
6 7 9
6 7 11
6 7 22
6 7 8
6 7 9
6 7 9
6 7 11
6 7 22
6 8 9
6 8 9
6 8 11
6 8 22
6 9 9
6 9 11
6 9 22
6 9 11
6 9 22
6 11 22
7 7 8
7 7 9
7 7 9
7 7 11
7 7 22
7 8 9
7 8 9
7 8 11
7 8 22
7 9 9
7 9 11
7 9 22
7 9 11
7 9 22
7 11 22
7 8 9
7 8 9
7 8 11
7 8 22
7 9 9
7 9 11
7 9 22
7 9 11
7 9 22
7 11 22
8 9 9
8 9 11
8 9 22
8 9 11
8 9 22
8 11 22
9 9 11
9 9 22
9 11 22
9 11 22
46


Fixed submission (verdict: Accepted):
from itertools import combinations 

N = int(input())
L_list = sorted(list(map(int, input().split())))
ans = 0

for x, y, z in combinations(L_list, 3):
  
  if x == y or y == z or z == x:
    continue
  if x + y > z and y + z > x and z + x > y:
    ans += 1

print(ans)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
ar=[int(x) for x in input().split()]
ar.sort()
ans=0
for i in range(n):
  for j in range(i+1,n):
    for k in range(j+1,n):
      if(ar[i]+ar[j]>ar[k]):
        ans+=1
print(ans)

Failing test case input:
10
16 11 26 1 2 6 7 7 7 8

Expected output:
22


Actual output:
38


Fixed submission (verdict: Accepted):
n=int(input())
ar=[int(x) for x in input().split()]
ar.sort()

ans=0
for i in range(n):
  for j in range(i+1,n):
    for k in range(j+1,n):
      if(ar[i]!=ar[j] and ar[j]!=ar[k] and ar[i]+ar[j]>ar[k]):
          ans+=1

print(ans)
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



from itertools import combinations


def is_tri(_a, _b, _c):
    if _a + _b > _c and _b + _c > _a and _c + _a > _b:
        return True
    else:
        return False


n = int(input())
sticks = list(map(int, input().split()))

h = combinations(sticks, 3)

counter = 0
for a, b, c in h:
    if is_tri(a, b, c):
        if a != b and b != c and a != c:
            print(a, b, c)
            counter += 1

print(counter)


Failing test case input:
10
9 11 22 2 9 6 7 6 7 8

Expected output:
46


Actual output:
9 11 6
9 11 7
9 11 6
9 11 7
9 11 8
9 2 8
9 6 7
9 6 7
9 6 8
9 7 6
9 7 8
9 6 7
9 6 8
9 7 8
11 9 6
11 9 7
11 9 6
11 9 7
11 9 8
11 6 7
11 6 7
11 6 8
11 7 6
11 7 8
11 6 7
11 6 8
11 7 8
2 9 8
2 6 7
2 6 7
2 7 6
2 7 8
2 6 7
2 7 8
9 6 7
9 6 7
9 6 8
9 7 6
9 7 8
9 6 7
9 6 8
9 7 8
6 7 8
6 7 8
7 6 8
6 7 8
46


Fixed submission (verdict: Accepted):



from itertools import combinations


def is_tri(_a, _b, _c):
    if (_a + _b > _c) and (_b + _c > _a) and (_c + _a > _b):
        return True
    else:
        return False


n = int(input())
sticks = list(map(int, input().split()))

h = combinations(sticks, 3)

counter = 0
for a, b, c in h:
    if is_tri(a, b, c):
        a, b, c = sorted([a, b, c])
        if (a != b) and (b != c):
            counter += 1

print(counter)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input()) 
l = list(map(int,input().split())) 
if n<=2:
  print(0)
  exit()
  
cnt = 0
for i in range(n):
  for j in range(n):
    for k in range(n):
      if (l[i]-l[j])*(l[j]-l[k])*(l[k]-l[i])==0:
        continue
      if l[i]<l[j]+l[k] and l[j]<l[i]+l[k] and l[k]<l[i]+l[j]:
        cnt+= 1
print(cnt)


Failing test case input:
10
16 7 3 2 2 12 10 1 17 0

Expected output:
13


Actual output:
78


Fixed submission (verdict: Accepted):
n=int(input()) 
l = list(map(int,input().split())) 
if n<=2:
  print(0)
  exit()
  
cnt = 0
for i in range(n-2):
  for j in range(i+1,n-1):
    for k in range(j+1,n):
      if (l[i]-l[j])*(l[j]-l[k])*(l[k]-l[i])==0:
        continue
      if l[i]<l[j]+l[k] and l[j]<l[i]+l[k] and l[k]<l[i]+l[j]:
        cnt+= 1
print(cnt)

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N = int(input())
L = list(map(int, input().split()))
ans = 0
if N <3:
    print(0)

for i in range(0, len(L)):
    for j in range(i+1, len(L)):
        for k in range(j+1, len(L)):
            if L[i] != L[j] and L[j] != L[k] and L[k] != L[i] and (max(L[i], L[j], L[k]) < (L[i]+ L[j]+ L[k])/2):
                ans += 1
print(ans)

Failing test case input:
2
13 0

Expected output:
0


Actual output:
0
0


Fixed submission (verdict: Accepted):

N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0

for i in range(0, len(L)):
    for j in range(i+1, len(L)):
        for k in range(j+1, len(L)):
            if L[i] != L[j] and L[j] != L[k] and (L[k] < L[i] + L[j]):
                ans += 1
print(ans)
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

def ans(arr, n): 
	
	count = 0
	for i in range(n): 
		for j in range(i + 1, n):
			for k in range(j + 1, n):
			    if (arr[i] + arr[j] > arr[k] and arr[i] + arr[k] > arr[j] and arr[k] + arr[j] > arr[i]):
			        if(arr[i]!=arr[j]!=arr[k]):
			            count += 1
	return count 


n = int(input())
arr = [int(x) for x in input().split()]
if(n<=2):
    print(0)
else:
    print(ans(arr,n))

Failing test case input:
6
4 5 8 3 5 5

Expected output:
6


Actual output:
10


Fixed submission (verdict: Accepted):

def ans(arr, n): 
	
	count = 0
	for i in range(n): 
		for j in range(i + 1, n):
			for k in range(j + 1, n):
			    if (arr[i] + arr[j] > arr[k] and arr[i] + arr[k] > arr[j] and arr[k] + arr[j] > arr[i]):
			        if len(set([arr[i],arr[j],arr[k]]))==3:
			            count += 1
	return count 


n = int(input())
arr = [int(x) for x in input().split()]
if(n<=2):
    print(0)
else:
    print(ans(arr,n))

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
boulist=list(map(int,input().split()))
boulist.sort(reverse=True)

count=0
for i in range(n):
  for j in range(i,n):
    for k in range(j,n):
      if boulist[j] != boulist[k] and boulist[i] != boulist[j] and boulist[i]+boulist[j]>boulist[k]:
        count+=1

print(count)




Failing test case input:
6
1 5 7 3 7 5

Expected output:
4


Actual output:
12


Fixed submission (verdict: Accepted):
n=int(input())
boulist=list(map(int,input().split()))
boulist.sort(reverse=True)

count=0
for i in range(n):
  for j in range(0,i):
    for k in range(0,j):
      if boulist[j] != boulist[k] and boulist[i] != boulist[j] and boulist[i]+boulist[j]>boulist[k]:
        count+=1

print(count)

Problem: p02583
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import itertools

n=int(input())
a=list(map(int,input().split()))

count=0

for x in itertools.combinations(a, 3):
  if(x[0]+x[1]>x[2] and x[0]+x[2]>x[1] and x[1]+x[2]>x[0]):
    count+=1
  else:
    pass
    
print(count)

Failing test case input:
6
0 5 7 3 7 5

Expected output:
4


Actual output:
10


Fixed submission (verdict: Accepted):
import itertools

n=int(input())
a=list(map(int,input().split()))

count=0
y=[]

for x in itertools.combinations(a, 3):
  if (x[0]==x[1] or x[0]==x[2] or x[1]==x[2]):
    pass
  else:
    if(x[0]+x[1]>x[2] and x[0]+x[2]>x[1] and x[1]+x[2]>x[0]):
      count+=1
    else:
      pass

print(count)
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import itertools
N = input()
L = input().split()
count = 0

for v in itertools.permutations(L, 3):
    if (v[0]+v[1]>v[2]) and (v[1]+v[2]>v[0]) and (v[2]+v[0]>v[1]):
        count += 1
        
print(count)


Failing test case input:
10
16 4 3 1 2 6 7 1 7 8

Expected output:
18


Actual output:
0


Fixed submission (verdict: Accepted):
import itertools

N = input()
L = input().split()
count = 0

for v_s in itertools.combinations(L, 3):
    v = [int (vv) for vv in v_s]
    if (v[0] != v[1]) and (v[1] != v[2]) and (v[2] != v[0]): 
        if (v[0]+v[1]>v[2]) and (v[1]+v[2]>v[0]) and (v[2]+v[0]>v[1]):
            count += 1

print(count)

Problem: p02583
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def solve():
    N = int(input())
    L = list(map(int, input().split()))

    count = 0
    for i in range(N):
        for j in range(i+1, N):
            for k in range(j+1, N):
                if(L[i] != L[j] and L[j] != L[k] and L[k] != L[i]):
                    if(L[i]+L[j] > L[k] and L[j]+L[k] > L[i] and L[k]+L[i] > L[j]):
                        count += 1
                        break

    print(count)

if __name__ == "__main__":
    solve()

Failing test case input:
10
9 11 18 2 9 6 7 7 7 8

Expected output:
45


Actual output:
24


Fixed submission (verdict: Accepted):
def solve():
    N = int(input())
    L = list(map(int, input().split()))

    count = 0
    for i in range(N):
        for j in range(i+1, N):
            for k in range(j+1, N):
                if(L[i] != L[j] and L[j] != L[k] and L[k] != L[i]):
                    if(L[i]+L[j] > L[k] and L[j]+L[k] > L[i] and L[k]+L[i] > L[j]):
                        count += 1

    print(count)

if __name__ == "__main__":
    solve()

Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
L = list(map(int, input().split()))

ans = 0
for i in range(N):
  for j in range(i+1, N):
    for k in range(j+1, N):
      if L[i] != L[j] != L[k]:
        if L[i] + L[j] > L[k] and L[j] + L[k] > L[i] and L[k] + L[i] > L[j]:
          ans += 1
         
print(ans)

Failing test case input:
10
9 11 18 2 9 11 7 7 7 8

Expected output:
39


Actual output:
44


Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int, input().split()))

ans = 0
for i in range(N):
  for j in range(N):
    for k in range(N):
        if L[i] != L[j] and L[j] != L[k] and L[i] != L[k]:
            if (L[i] + L[j] > L[k]) and (L[j] + L[k] > L[i]) and (L[k] + L[i] > L[j]):
                ans += 1

print(ans
Problem: p02583
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
lis = list(map(int,input().split()))
for i in range(n):
  for j in range(n):
    for k in range(n):
      if i != j and j != k and i != k:
        if max(lis[i],lis[j],lis[k]) < lis[i]+lis[j]+lis[k]-max(lis[i],lis[j],lis[k]):
          ans += 1
print(ans)

Failing test case input:
6
1 8 7 0 12 1

Expected output:
1


Actual output:
6


Fixed submission (verdict: Accepted):
n = int(input())
ans = 0
lis = list(map(int,input().split()))
for i in range(n):
  for j in range(i,n):
    for k in range(j,n):
      if i != j and j != k and i != k:
        if lis[i] != lis[j] and lis[j] != lis[k] and lis[i] != lis[k]:
          if max(lis[i],lis[j],lis[k]) < lis[i]+lis[j]+lis[k]-max(lis[i],lis[j],lis[k]):
            ans += 1
print(ans)
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if(S[4]==S[5]):
    print("Yes")
else:
    print("No")

Failing test case input:
cofgee

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
if (S[4]==S[5])&(S[2]==S[3]):
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
string=input()
ans= "NO"
if len(string) != 6:
	print(ans)
else:
  if string[2] == string[3] and string[4] == string[5]:
    ans="YES"
    print(ans)

Failing test case input:
vvppjs

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
string=input()
ans= "No"
if len(string) != 6:
	print(ans)
else:
  if string[2] == string[3] and string[4] == string[5]:
    ans="Yes"
    print(ans)
  else:
    print("No")

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

if s[2]==s[3] or s[4]==s[5]:
    print("Yes")
else:
    print("No")

Failing test case input:
jvqqws

Expected output:
No


Actual output:
Yes


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

if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

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

s = input()
x = list(s)
if x[2] == x[3]:
    if x[4] == x[5]:
        print('Yes')
else:
    print('No')


Failing test case input:
heeeen

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):

s = input()
x = list(s)
if x[2] == x[3]:
    if x[4] == x[5]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[2] == str_in[3]):
  ans = "Yes"
print(ans)

Failing test case input:
uvppis

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[4] == str_in[5]):
  ans = "Yes"
print(ans)

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


def input() -> str:
    return sys.stdin.readline().rstrip("\r\n")


def main():
    s = input()
    if len(s) != 6:
        print('No')
    elif s[-2] == s[-1] and s[2] == s[3]:
        print('Yes')


if __name__ == "__main__":

    main()


Failing test case input:
jvpqws

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
import sys


def input() -> str:
    return sys.stdin.readline().rstrip("\r\n")


def main():
    s = input()
    if len(s) == 6 and s[-2] == s[-1] and s[2] == s[3]:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":

    main()

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

if S[2] == S[3]:
    print('Yes')
else:
    print('No')

Failing test case input:
jvqqws

Expected output:
No


Actual output:
Yes


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

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
    S = input()
    print((S[2] == S[3]) & (S[4] == S[5]))

Failing test case input:
nhohnd

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
    S = input()
    if ((S[2] == S[3]) & (S[4] == S[5])):
        print('Yes')
    else:
        print('No')

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()

if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("NO")
          

Failing test case input:
innhof

Expected output:
No


Actual output:
NO


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

if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("Yes")


Failing test case input:
odhgmo

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")

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

ans="No"

if S[2==3] and S[4==5]:
  ans="Yes"
  
print(ans)

Failing test case input:
qvvrph

Expected output:
No


Actual output:
Yes


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

ans="No"

if S[2]==S[3] and S[4]==S[5]:
  ans="Yes"
  
print(ans)

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

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

Failing test case input:
swqqvj

Expected output:
No


Actual output:

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

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

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().strip('\n')
print('Yes' if S[2]==S[3] and S[4]==S[4] else 'No')

Failing test case input:
gdeebo

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input().strip('\n')
print('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
flag = True
if (S[2] != S[3]):
    flag = False
if (S[4] != S[4]):
    flag = False

if flag:
    print('Yes')
else:
    print('No')


Failing test case input:
uuppis

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
flag = True
if (S[2] != S[3]):
    flag = False
if (S[4] != S[5]):
    flag = False

if flag:
    print('Yes')
else:
    print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
if a[2] ==a[3]:
    print ("Yes")
else:
    print ("No")

Failing test case input:
jvqqws

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = input()
if a[2] ==a[3] and a[4]==a[5]:
    print ("Yes")
else:
    print ("No")
Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a= input()

if a[2] == a[3] and a[4] == a[5]:
  print("yes")

else: print("no")

Failing test case input:
oeeddh

Expected output:
No


Actual output:
no


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

if a[2] == a[3] and a[4] == a[5]:
  print("Yes")

else: print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()

if s[2] == s[3] or s[4] == s[5]:
    print('Yes')
else:
    print('No')


Failing test case input:
nohhne

Expected output:
No


Actual output:
Yes


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

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
if len(s) != 6:
    print("NO")
    exit()

f = 0
for i in range(len(s)):
    x = ord(s[i])
    if (x < 97) or (x > 122):
        f = 1
        break

if f == 1:
    print("NO")
    exit()

if (s[2] == s[3]) and (s[4] == s[5]):
    print("YES")

else:
    print("NO")



Failing test case input:
odhgmo

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
if len(s) != 6:
    print("No")
    exit()

f = 0
for i in range(len(s)):
    x = ord(s[i])
    if (x < 97) or (x > 122):
        f = 1
        break

if f == 1:
    print("No")
    exit()

if (s[2] == s[3]) and (s[4] == s[5]):
    print("Yes")

else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[2] == s[3] or s[4] == s[5]:
  print('Yes')
else:
  print('No')


Failing test case input:
gdeebo

Expected output:
No


Actual output:
Yes


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

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if(S[2] == S[3] and S[4]==S[5] ):
	print("YES")
else :
	print("No")

Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
S = input()
if(S[2] == S[3] and S[4]==S[5] ):
	print("Yes")
else :
	print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n =input()
if ((n[2] == n[3]) and (n[4] == n[5])):
    print("YES")
else:
    print("NO")

Failing test case input:
nmghdo

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if (n[2] == n[3] and n[4] == n[5]):
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
nums = list(str(input()))
if nums[2] == nums[3]:
    print("Yes")
elif nums[4] == nums[5]:
    print("Yes")
else:
    print("No")

Failing test case input:
uuppis

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
word = list(str(input()))
if word[2] == word[3] and word[4] == word[5]:
    print("Yes")
else:
    print("No")
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
for i in range(0,6):
  if(s[3]==s[4] and s[4]==s[5]):
    print("yes")
    break
  else:
    print ("no")
    break

Failing test case input:
noehnh

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s=input()
for i in range(0,6):
  if(s[2]==s[3] and s[4]==s[5]):
    print("Yes")
    break
  else:
    print ("No")
    break

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  word = input()
  if (word[2]==word[3]) and (word[4]==word[5]):
    print("Yes")
  else:
    print("No")

Failing test case input:
qvvsph

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
word = input()
if (word[2]==word[3]) and (word[4]==word[5]):
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
 
if s[2] == s[3]:
  if s[4] == s[5]:
    print('Yes')
else:
  print('No')

Failing test case input:
gdeebo

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if len(s) != 6:
    print("NO")
else:
    a = [0]*26
    flag = True
    if s[2] != s[3]:
        flag = False
    if s[4] != s[5]:
        flag = False
    if flag:
        print("YES")
    else:
        print("NO")

Failing test case input:
sippvu

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
flag = True
if len(s) != 6:
    flag = False

for i in s:
    if ord(i) < 97 or ord(i) > 122:
        flag = False
if len(s) == 6:
    if s[2] != s[3]:
        flag = False
    if s[4] != s[5]:
        flag = False
if flag:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
a = list(a)
if a[2] == a[3] or a[4] ==a[5]:
  print("Yes")
else:
  print("No")

Failing test case input:
sjrpvv

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = input()
a = list(a)
if a[2] == a[3] and a[4] ==a[5]:
  print("Yes")
else:
  print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
s=set(s[3:6])
if len(s)<=2:
	print('Yes')
else:
	print('No')

Failing test case input:
heeeen

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
a=set(s[2:4])
b=set(s[4:6])
if len(a)==1 and len(b)==1:
	print('Yes')
else:
	print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[2] == s[3] and [4] == s[5]:
  print("Yes")
else:
  print("No")

Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = str(input())

if S[2]==S[3]:
    if S[4]==S[5]:
        print('Yes')
else:
    print('No')

Failing test case input:
uvppis

Expected output:
No


Actual output:

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

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')

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


S = input('6文字の文字列を入力してください:')

if S[2] == S[3] and S[4] == S[5] :
  print('YES')
  
else :
  print('No')
  

Failing test case input:
gdeebo

Expected output:
No


Actual output:
6文字の文字列を入力してください:No


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

if S[2] == S[3] and S[4] == S[5] :
  print('Yes')

else :
  print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
if (s[2] == s[3] and s[4] == s[5]):
    print("YES")
else:
    print("NO")


Failing test case input:
qvvrph

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = list(input())
if (s[2] == s[3] and s[4] == s[5]):
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
if s[2] == s[3] and s[4] and s[5]:
    print('Yes')
else:
    print('No')

Failing test case input:
nnhheo

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = str(input())
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input();print('YNeos'[s[2]!=s[3] and s[4]!=s[5]::2])

Failing test case input:
sjrpvv

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input();print('YNeos'[s[2]!=s[3] or s[4]!=s[5]::2])

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input().strip()
if(A[2] == A[3] and A[4] == A[5]):
    print("Yes")
else:
    print ("no")


Failing test case input:
dnhohn

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
A = input().strip()
if(A[2] == A[3] and A[4] == A[5]):
    print("Yes")
else:
    print ("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yse")
else:
    print("No")


Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
Yse


Fixed submission (verdict: Accepted):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

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

if S[2]==S[3] and S[4]==S[5]:
    print('yes')
else:
    print('No')    


Failing test case input:
coffee

Expected output:
Yes

Actual output:
yes


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

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str=input(" ")

 
    
if((str[2]==str[3]) and (str[4]==str[5])):
    print("YES")
else:
    print("NO")

Failing test case input:
nhehno

Expected output:
No


Actual output:
 NO


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

 
    
if((str[2]==str[3]) and (str[4]==str[5])):
    print("Yes")
else:
    print("No")

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


S = input()

if S[2] == S[3] or S[4] == S[5]:
    print('Yes')
else:
    print('No')

Failing test case input:
gdeebo

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):


S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

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

if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
        exit()


else:
    print("No")


Failing test case input:
uuppis

Expected output:
No


Actual output:

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

if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
        quit()

print("No")

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

print('Yes') if(S[2]==S[3] or S[4]==S[5]) else print('No')



Failing test case input:
oeeebh

Expected output:
No


Actual output:
Yes


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

print('Yes') if(S[2]==S[3] and S[4]==S[5]) else print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input() 
if S[2:] == "ffee":
    answer = "Yes"

else:
    answer = "No"

print(answer)

Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input() 
if S[2] == S[3] and S[4]==S[5]:
    answer = "Yes"

else:
    answer = "No"

print(answer)

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()


b=False
if a[2]==a[3]:
    if a[4]==a[5]:
        a=True
    
print(b)

Failing test case input:
hfnhon

Expected output:
No


Actual output:
False


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


b=False
if a[2]==a[3]:
    if a[4]==a[5]:
        b=True


if b==True:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input("enter string ")
S.lower()
if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("No")

Failing test case input:
oeedch

Expected output:
No


Actual output:
enter string No


Fixed submission (verdict: Accepted):
S = input()
S = S.lower()
if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("No")
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def coffee(s):
  if len(s) < 6:
    return False
  if s[2] == s[3] and s[4] == s[5]:
    return True
  else:
    return False
  
string = input()
print(coffee(string))

Failing test case input:
noinhe

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
def coffee(s):
  if len(s) < 6:
    return False
  if s[2] == s[3] and s[4] == s[5]:
    return 'Yes'
  else:
    return 'No'

string = input()
print(coffee(string))

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=str(input())
a=list(n)
if n.find(a[2],3,4)!=-1 & n.find(a[4],5,6)!=-1:
    print('Yes')
else:
    print('No')

Failing test case input:
sjrpvv

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=str(input())
a=list(n)
if n.find(a[2],3,4)!=-1:
   if n.find(a[4],5,)!=-1:
      print('Yes')
   else:print('No')
else:
    print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
ans='No'

if S[2]==S[3] or S[4]==S[5]:
    ans='Yes'
    
print(ans)

Failing test case input:
uuppis

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
ans='No'

if S[2]==S[3] and S[4]==S[5]:
    ans='Yes'
    
print(ans)

Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x = input()

if x[2] == x[3]:
    if x[4] == x[5]:
        print("Yes")
else:
    print("No")


Failing test case input:
neeeeh

Expected output:
No


Actual output:

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

if x[2] == x[3] and x[4]==x[5]:
  print("Yes")
else:
  print("No")

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

if s[2] == s[3]:
  if s[4] == s[5]:
    print("Yes")
  else:
    print("No") 

Failing test case input:
enhohn

Expected output:
No


Actual output:

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

res = 0
if s[2] == s[3]:
    if s[4] == s[5]:
        res += 1

if res == 1:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()[2::];print('Yes' if len(set(s))==2 else 'No')

Failing test case input:
heeeen

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()[2::];print('Yes' if len(set(s[:2]))==1 and len(set(s[2:]))==1 else 'No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yse')
else:
    print('No')

Failing test case input:
coffee

Expected output:
Yes

Actual output:
Yse


Fixed submission (verdict: Accepted):
s = input()
if len(s) == 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
else:
  print("No")

Failing test case input:
uvppjs

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
S = input()
if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")
Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
 
if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
else:
    print("No")

Failing test case input:
swqqvj

Expected output:
No


Actual output:

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

res = 0
if s[2] == s[3]:
    if s[4] == s[5]:
        res += 1

if res == 1:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
data = input()

if data[2:4] == data[4:6]:
    print("Yes")
else:
    print("No")

Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
No


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

if data[2] == data[3] and data[4] == data[5]:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = f"@{input()}"
print(s[3] == s[4] and s[5] == s[6])

Failing test case input:
ffoegc

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
s = f"@{input()}"
print((s[3] == s[4] and s[5] == s[6]) and "Yes" or "No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
word = input()
print('Yes' if word[2] == word[3] and word[4] and word[5] else 'No')


Failing test case input:
oeeebh

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
word = input()
print('Yes' if word[2] == word[3] and word[4] == word[5] else 'No')

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
if s[2] == s[3] and s[4] and s[5]:
    print("Yes")
else:
    print("No")


Failing test case input:
nmhheo

Expected output:
No


Actual output:
Yes


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

Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
else:
    print("No")

Failing test case input:
nohhne

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s = input()
if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_a = input()

if input_a[2] == input_a[3]:
    if input_a[4] == input_a[5]:
        print("Yes")
else:
    print("No")

Failing test case input:
uvppjs

Expected output:
No


Actual output:

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

if input_a[2] == input_a[3] and input_a[4] == input_a[5]:
    print("Yes")
else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input = input()
if (input[2] == input[3]) & (input[4] == input[5]):
    print('Yes')
else:
    print('None')


Failing test case input:
nefeeh

Expected output:
No


Actual output:
None


Fixed submission (verdict: Accepted):
input = input()
if (input[2] == input[3]) & (input[4] == input[5]):
    print('Yes')
else:
    print('No')
Problem: p02723
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s=input()
if(s[2]==s[3] and s[4]==s[5]):
	print("YES")
else:
	print("NO")

Failing test case input:
swqrjv

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
if(s[2]==s[3] and s[4]==s[5]):
	print("Yes")
else:
	print("No")

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

condition = s[2]==s[3] and s[3]==s[4]

if condition:
  print("Yes")
else:
  print("No")

Failing test case input:
coffee

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
 
condition = s[2]==s[3] and s[4]==s[5]
 
if condition:
  print("Yes")
else:
  print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = str(input().split())
s = list(a)
print(s)
if s[4] == s[5] and s[7] == s[6]:
      print("Yes")
else :
      print("No")

Failing test case input:
nhohnd

Expected output:
No


Actual output:
['[', "'", 'n', 'h', 'o', 'h', 'n', 'd', "'", ']']
No


Fixed submission (verdict: Accepted):
a = str(input().split())
s = list(a)
if s[4] == s[5] and s[7] == s[6]:
      print("Yes")
else :
      print("No")

Problem: p02723
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
answer = input()

count = 0
list = []
for i in answer:
    list.append(i)

if len(answer) != 6:
    print(False)
    
elif list[2] == list[3] and list[4] == list[5]:
    print(True)

else:
    print(False)


Failing test case input:
nmgheo

Expected output:
No


Actual output:
False


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

count = 0
list = []
for i in answer:
    list.append(i)

if len(answer) != 6:
    print("No")

elif list[2] == list[3] and list[4] == list[5]:
    print("Yes")

else:
    print("No")

Problem: p02723
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def coffee(ar):
    
    if ar[3] == ar[4] and ar[5] == ar[6]:
      return 'Yes'
    else:
      return 'No'

if __name__ == '__main__':

    ar = str(input().split())

    result = coffee(ar)
    print(result)

Failing test case input:
sjppvv

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def coffee(word):
    ar = [char for char in word] 
    if (ar[2] == ar[3]) and (ar[4] == ar[5]):
      return 'Yes'
    else:
      return 'No'

if __name__ == '__main__':

    ar = str(input())

    result = coffee(ar)
    print(result)

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

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

Failing test case input:
swqqjv

Expected output:
No


Actual output:
Yes


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

if s[2] == s[3] and s[4] == s[5]:
  print('Yes')
else:
  print('No')