ZhenlongDai/ACPR huggingface dataset:
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0:3] == "YAKI":
	print("Yes")
else:
	print("No")
    

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0:4] == "YAKI":
	print("Yes")
else:
	print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(input())
if len(a)<=3:
	print("No")
else:
	if a[0]=="T" and a[1]=="A" and a[2]=="K" and a[3]=="I":
		print("Yes")
	else:
		print("No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
a=list(input())
if len(a)<=3:
	print("No")
else:
	if a[0]=="Y" and a[1]=="A" and a[2]=="K" and a[3]=="I":
		print("Yes")
	else:
		print("No")

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print("Yes" if input()[:4]=="YAKI" else "NO")

Failing test case input:
AKTYPKAI

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("Yes" if input()[:4]=="YAKI" else "No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('NO')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('YES')
		else:
			print('NO')



solution()

Failing test case input:
AAKOYUKI

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('No')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('No')



solution()

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



if __name__ == '__main__':
    S=input()
    
    if (S[0:4]=="YAKI"):
        print("YES")
    else:
        print("NO")

Failing test case input:
UJKYMAIN

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):



if __name__ == '__main__':
    S=input()
    
    if (S[0:4]=="YAKI"):
        print("Yes")
    else:
        print("No")

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

if (len(s) >= 4):
    if (s[0:4] == "YAKI"):
        print("Yes")
    else:
        print("No")

Failing test case input:
]?Q

Expected output:
No


Actual output:

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

ans = 0

if (len(s) >= 4):
    if (s[0:4] == "YAKI"):
        ans = 1

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

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



Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

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


S = input()
if S in "YAKI":
	print("Yes")

else:
	print("No")

Failing test case input:
YAK

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):


S = input()

S = S[0:4]

if "YAKI" in S:
	print("Yes")

else:
	print("No")
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if len(s)<4:print("No")
elif s[:3]=="YAKI":print("Yes")
else:print("No")


Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if len(s)<4:print("No")
elif s[:4]=="YAKI":print("Yes")
else:print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def isYaki(input):
    if len(input) < 4:
        return 'No'
    
    answer = 'YAKI'
    for (a, b) in zip(answer, input):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    input = input('> ')
    print(isYaki(input))


Failing test case input:
TLKYKAIN

Expected output:
No


Actual output:
> No


Fixed submission (verdict: Accepted):
def isYaki(S):
    if len(S) < 4:
        return 'No'
    
    answer = 'YAKI'
    for (a, b) in zip(answer, S):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    S = input()
    print(isYaki(S))

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import re
print("Yes" if re.search("YAKI,*", input()) else "No")

Failing test case input:
TAKOYAKI

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
print("Yes" if re.search("^YAKI,*", input()) else "No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s.startswith('YAKI'):
    print('YES')
else:
    print('NO')


Failing test case input:
AMXTBKNI

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
if s.startswith('YAKI'):
    print('Yes')
else:
    print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('NO')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('NO')



solution()

Failing test case input:
TLKYL@IO

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('No')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('No')



solution()

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):







    
s = input()
ans = "YAKI"

if len(s) >= 4:
    if s[4:] == ans:
        print("Yes")
    else:
        print("No")
else:
    print("No")


Failing test case input:
TAKOYAKI

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):







yes = "Yes"
s = input()
ans = "YAKI"

if len(s) >= 4:
    if s[:4] == ans:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input())
if len(s)>=4 and s[0:5]==list('YAKI'):
    print('Yes')
else:
    print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s=list(input())
if len(s)>=4 and s[0:4]==list('YAKI'):
    print('Yes')
else:
    print('No')
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0:3] == 'YAKI':
    print('Yes')
else:
    print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0:4] == 'YAKI':
    print('Yes')
else:
    print('No')

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


S = input()

S = S[0:4]

if S in "YAKI":
	print("Yes")

else:
	print("No")

Failing test case input:
YAK

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):


S = input()

S = S[0:4]

if "YAKI" in S:
	print("Yes")

else:
	print("No")

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


Failing test case input:
IAKPYTKA

Expected output:
No


Actual output:
IAKPYTKA
No


Fixed submission (verdict: Accepted):
S = input()
if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if len(s)<4:
    print("No")
if s[:4]=="YAKI":
  print("Yes")
else:("No")

Failing test case input:
UJKYMAIN

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
s=input()
if len(s)<4:
    print("No")
elif s[:4]=="YAKI":
    print("Yes")
else:print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('YES' if s.startswith('YAKI') else 'No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
print('Yes' if s.startswith('YAKI') else 'No')

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

if len(s)>=4:
  if s[0:4]=="YAKI":
    print("Yes")
else:
  print("No")

Failing test case input:
UKIYBKIN

Expected output:
No


Actual output:

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

if len(s)>=4:
  if s[0:4]=="YAKI":
    print("Yes")
  else:
    print("No")
else:
  print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if(len(s)>=4) :
	if(s[:4]=="YAKI"): 
		print("YES")
	else : print("NO")
else : print("NO")

Failing test case input:
UKKYLAIN

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s=input()
if(len(s)>=4) :
	if(s[:4]=="YAKI"): 
		print("Yes")
	else : print("No")
else : print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YNEOS"[input()[:4]!="YAKI"::2])

Failing test case input:
AMXTBKNH

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("YNeos"[input()[:4]!="YAKI"::2])

Problem: p03591
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if len(S) >= 4 and S[::4] == 'YAKI':
  print('Yes')
else:
  print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
if len(S) >= 4 and S[:4] == 'YAKI':
  print('Yes')
else:
  print('No')
Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    S = input()
    if S[:4] == "YAKI":
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    main()


Failing test case input:
NIAMYKJU

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def main():
    S = input()
    if S[:4] == "YAKI":
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YNEOS'[input()[:4]!='YAKI'::2])

Failing test case input:
TAKOYAKI

Expected output:
No

Actual output:
NO


Fixed submission (verdict: Accepted):
print('YNeos'[input()[:4]!='YAKI'::2])

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if len(s)>=4:
    if s[0:3]=="YAKI":
        print("Yes")
    else:
        print("No")
else:
    print("No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if len(s)>=4:
    if s[0:4]=="YAKI":
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=str(input())
if s[:4]=="YAKI":
    print("yes")
else:
    print("no")

Failing test case input:
ATKKPYAI

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s=str(input())
if s[:4]=="YAKI":
    print("Yes")
else:
    print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
if s[0:3] == "YAKI":
    print("Yes")
else:
    print("No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = str(input())
if s[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print('YNoes'[input()[:4]!='YAKI'::2])

Failing test case input:
AMXTBKNH

Expected output:
No


Actual output:
Ne


Fixed submission (verdict: Accepted):
print('YNeos'[input()[:4]!='YAKI'::2])

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S = input()
if S[:3] == "YAKI": print("Yes")
else:print("No") 

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
if S[:4] == "YAKI": print("Yes")
else:print("No")

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print("YES" if input()[:4] == "YAKI" else "NO")

Failing test case input:
ZAJ

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
print("Yes" if input()[:4] == "YAKI" else "No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s[:3]=="YAKI":
  print("Yes")
else:
  print("No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if s[:4]=="YAKI":
  print("Yes")
else:
  print("No")
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

if len(s)>4:
  if s[0:4]=="YAKI":
    print("Yes")
else:
  print("No")


Failing test case input:
VKJYMAIN

Expected output:
No


Actual output:

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

if len(s)>=4:
  if s[0:4]=="YAKI":
    print("Yes")
  else:
    print("No")
else:
  print("No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('NO')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('No')



solution()

Failing test case input:
JAZ

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('No')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('No')



solution()

Problem: p03591
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
print('Yes' if n[0:4]=="YAKI" else "NO")

Failing test case input:
VKJYLAIN

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
print('Yes' if n[0:4]=="YAKI" else "No")

Problem: p03591
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
print('Yes') if s[0:4] == "YAKI" else print('Nn')

Failing test case input:
LA[

Expected output:
No


Actual output:
Nn


Fixed submission (verdict: Accepted):
s = input()
print('Yes') if s[0:4] == "YAKI" else print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input().startswith('YAKi'):
    print('Yes')
else:
    print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
if input().startswith('YAKI'):
    print('Yes')
else:
    print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
n = len(s)
if n<4:
  print("No")
elif s[:4] == "Yaki":
  print("Yes")
else:
  print("No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
n = len(s)
if n<4:
  print("No")
elif s[:4] == "YAKI":
  print("Yes")
else:
  print("No")

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

if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")


Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


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

if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Problem: p03591
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = list(input())

if 4 <= len(s) and s[:4] == list("YAKI"):
    print("YES")
else:
    print("NO")

Failing test case input:
IATPYKKA

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = list(input())
 
if 4 <= len(s) and s[:4] == list("YAKI"):
    print("Yes")
else:
    print("No")
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print("No" if len(n) < 4 else "Yes" if n[:4] is "YAKI" else "No")

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
print("No" if len(n) < 4 else "Yes" if n[:4] == "YAKI" else "No")

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = input()

if len(i) < 4:
    print('NO')
elif i[:4] == 'YAKI':
    print('YES')
else:
    print('NO')

Failing test case input:
]?Q

Expected output:
No


Actual output:
NO


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

if len(i) < 4:
    print('No')
elif i[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0:4] == 'YAKI':
    print('YES')
else:
    print('NO')


Failing test case input:
ATKKOXAI

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
if s[0:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('YES' if s[:4] == 'YAKI' else 'NO')


Failing test case input:
Q?]

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
print('Yes' if s[:4] == 'YAKI' else 'No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def isYaki(input):
    answer = 'YAKI'
    for (a, b) in zip(answer, input):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    input = input('> ')
    print(isYaki(input))


Failing test case input:
TAKOYAKI

Expected output:
No

Actual output:
> No


Fixed submission (verdict: Accepted):
def isYaki(S):
    if len(S) < 4:
        return 'No'
    
    answer = 'YAKI'
    for (a, b) in zip(answer, S):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    S = input()
    print(isYaki(S))

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()
if s[0:4]=='YAKI' :
  print('Yes')
else :
  print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0:4]=='YAKI' :
  print('Yes')
else :
  print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if "YAKI" in S:
    print("Yes")
else:
    print("No")

Failing test case input:
TAKOYAKI

Expected output:
No

Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
if "YAKI" in S[0:4]:
    print("Yes")
else:
    print("No")
Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def II(): return int(input())
def ILI(): return list(map(int, input().split()))


def read():
    S = str(input())
    return (S,)


def solve(S):
    if len(S) < 4:
        return "No"
    if "".join(S[0:3]) == "YAKI":
        return "Yes"
    else:
        return "No"


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()


Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):

def II(): return int(input())
def ILI(): return list(map(int, input().split()))


def read():
    S = str(input())
    return (S,)


def solve(S):
    if len(S) < 4:
        return "No"
    if "".join(S[0:4]) == "YAKI":
        return "Yes"
    else:
        return "No"


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = input()

if len(i) < 4:
    print('NO')
elif i[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Failing test case input:
M@Z

Expected output:
No


Actual output:
NO


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

if len(i) < 4:
    print('No')
elif i[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Problem: p03591
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
if s[0:3] == 'YAKI':
    print('Yes')
else:
    print('No')

Failing test case input:
YAKINIKU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = str(input())
if s[0:4] == 'YAKI':
    print('Yes')
else:
    print('No')
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inputList = []
inputList.extend(int(i) for i in input().split())
inputList.extend(int(i) for i in input().split())
inputList.extend(int(i) for i in input().split())

one = 0
two = 0
three = 0
four = 0

for i in inputList:
    if i == 1:
        one = one + 1
    elif i == 2:
        two = two + 1
    elif i == 3:
        three = three + 1
    elif i == 4:
        four = four + 1

if one < 1 or one >= 3 or two < 1 or  two >= 3 or three < 1 or three >= 3 or four < 1 or four >= 3:
    print('No')
else:
    print('YES')


Failing test case input:
1 3
2 3
4 3

Expected output:
NO


Actual output:
No


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

one = 0
two = 0
three = 0
four = 0

for i in inputList:
    if i == 1:
        one = one + 1
    elif i == 2:
        two = two + 1
    elif i == 3:
        three = three + 1
    elif i == 4:
        four = four + 1

if one < 1 or one >= 3 or two < 1 or  two >= 3 or three < 1 or three >= 3 or four < 1 or four >= 3:
    print('NO')
else:
    print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if l[i] == l[i+1] == l[i+2]:
        x = False
        break

print("YES" if x == True else "No")

Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if (l[i] == l[i+1]) and (l[i] == l[i+2]):
        x = False
if x == True:
    print("YES")
else:
    print("NO")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
p = [0,0,0,0]
for i in range(3):
    ai, bi = map(int, input().split())
    p[ai-1] += 1
    p[bi-1] += 1

if 3 in p:
    print('YES')
else:
    print('NO')


Failing test case input:
2 1
1 2
4 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
p = [0,0,0,0]
for i in range(3):
    ai, bi = map(int, input().split())
    p[ai-1] += 1
    p[bi-1] += 1

if 3 in p:
    print('NO')
else:
    print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
array = [0] * 4
for i in range(3):
    thisData = list(map(int, input().split()))
    for j in thisData:
        array[j - 1] += 1
print(array)
if max(array) == 3:
    print("NO")
else:
    print("YES")

Failing test case input:
1 2
3 3
4 1

Expected output:
YES


Actual output:
[2, 1, 2, 1]
YES


Fixed submission (verdict: Accepted):
array = [0] * 4
for i in range(3):
    thisData = list(map(int, input().split()))
    for j in thisData:
        array[j - 1] += 1

if max(array) == 3:
    print("NO")
else:
    print("YES")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
r=[map(int,input().split()) for i in range(3)]
print("YES" if r.count(1) <=2 and r.count(2) <=2 and r.count(3)<=2 and r.count(4) <=2 else "NO")


Failing test case input:
3 2
2 4
1 2

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
r=[]
for i in range(3):
  a,b=map(int,input().split())
  r.append(a);r.append(b)
print("YES" if r.count(1) <=2 and r.count(2) <=2 and r.count(3)<=2 and r.count(4) <=2 else "NO")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
city = [0, 0, 0, 0]
for i in range(3):
    a, b = ([int(x)-1 for x in input().split()])
    city[a] += 1
    city[b] += 1
    if city[a] > 2 or city[b] > 2:
        print('No')
        exit()

print('Yes')



Failing test case input:
2 4
1 4
3 1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
city = [0, 0, 0, 0]
for i in range(3):
    a, b = ([int(x)-1 for x in input().split()])
    city[a] += 1
    city[b] += 1
    if city[a] > 2 or city[b] > 2:
        print('NO')
        exit()

print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
a1,b1 = input().split()
a2,b2 = input().split()
a3,b3 = input().split()
a1 = int(a1)
b1 = int(b1)
a2 = int(a2)
b2 = int(b2)
a3 = int(a3)
b3 = int(b3)
list = [a1,a2,a3,b1,b2,b3]
if list.count(1) == 3 or list.count(2) == 3 or list.count(3) == 3:
    print("NO")
else:
    print("YES")

Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
a1,b1 = input().split()
a2,b2 = input().split()
a3,b3 = input().split()
a1 = int(a1)
b1 = int(b1)
a2 = int(a2)
b2 = int(b2)
a3 = int(a3)
b3 = int(b3)
list = [a1,a2,a3,b1,b2,b3]
if list.count(1) == 3 or list.count(2) == 3 or list.count(3) == 3 or list.count(4) == 3:
    print("NO")
else:
    print("YES")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(map(int,(input().split())))
y = list(map(int,(input().split())))
z = list(map(int,(input().split())))
count1 =  0
count2 =  0
count3 =  0
count4 =  0

num = x + y + z
for i in num:
    if num[i] == 1:
        count1 += 1
        if count1 >=3:
            print("NO")
            exit()
    if num[i] == 2:
        count2 += 1
        if count2 >=3:
            print("NO")
            exit()
    if num[i] == 3:
        count3 += 1
        if count3 >=3:
            print("NO")
            exit()
    if num[i] == 4:
        count4 += 1
        if count1 >=3:
            print("NO")
            exit()

print("YES")



Failing test case input:
4 3
2 1
2 1

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
x = list(map(int,(input().split())))
y = list(map(int,(input().split())))
z = list(map(int,(input().split())))
count1 =  0
count2 =  0
count3 =  0
count4 =  0

num = x + y + z

for i in range(len(num)):
    
    if num[i] == 1:
        count1 += 1
        if count1 >=3:
            print("NO")
            exit()
    if num[i] == 2:
        count2 += 1
        if count2 >=3:
            print("NO")
            exit()
    if num[i] == 3:
        count3 += 1
        if count3 >=3:
            print("NO")
            exit()
    if num[i] == 4:
        count4 += 1
        if count4 >=3:
            print("NO")
            exit()

print("YES")

Problem: p03130
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=input().split()
b=a[0]
c=a[1]
d=input().split()
e=d[0]
f=d[1]
g=input().split()
h=g[0]
i=g[1]
L=[b,c,e,f,h,i]
if L.count('1') or L.count('2') or L.count('3') or L.count('4') ==3:
    print('NO')
else:
    print('YES')


Failing test case input:
3 2
2 4
1 4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a=input().split()
b=a[0]
c=a[1]
d=input().split()
e=d[0]
f=d[1]
g=input().split()
h=g[0]
i=g[1]
L=[b,c,e,f,h,i]
if L.count('1')==3 or L.count('2')==3 or L.count('3')==3 or L.count('4') ==3:
    print('NO')
else:
    print('YES')
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(map(int,(input().split())))
y = list(map(int,(input().split())))
z = list(map(int,(input().split())))
count1 =  0
count2 =  0
count3 =  0
count4 =  0

num = x + y + z
for i in num:
    if num[i] == 1:
        count1 += 1
        if count1 >=3:
            print("NO")
            exit()
    if num[i] == 2:
        count2 += 1
        if count2 >=3:
            print("NO")
            exit()
    if num[i] == 3:
        count3 += 1
        if count3 >=3:
            print("NO")
            exit()
    if num[i] == 4:
        count4 += 1
        if count4 >=3:
            print("NO")
            exit()

print("YES")



Failing test case input:
2 4
1 2
1 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
x = list(map(int,(input().split())))
y = list(map(int,(input().split())))
z = list(map(int,(input().split())))
count1 =  0
count2 =  0
count3 =  0
count4 =  0

num = x + y + z

for i in range(len(num)):
    
    if num[i] == 1:
        count1 += 1
        if count1 >=3:
            print("NO")
            exit()
    if num[i] == 2:
        count2 += 1
        if count2 >=3:
            print("NO")
            exit()
    if num[i] == 3:
        count3 += 1
        if count3 >=3:
            print("NO")
            exit()
    if num[i] == 4:
        count4 += 1
        if count4 >=3:
            print("NO")
            exit()

print("YES")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lista = []
for i in range(3):
  a,b = map(int,input().split())
  lista.append(a)
  lista.append(b)
l1 = 0
l2 = 0
l3 = 0
l4 = 0
for j in lista:
  if j == 1:
    l1 += 1
  if j == 2:
    l2 += 1
  if j == 3:
    l3 += 1
  if j == 4:
    l4 += 1
c = (l1)%2 + (l2)%2 + (l3)%2 + (l4)%2
if c%2 == 0:
  print('YES')
else:
  print('NO')
  


Failing test case input:
2 4
3 2
1 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
lista = []
for i in range(3):
  a,b = map(int,input().split())
  lista.append(a)
  lista.append(b)
l1 = 0
l2 = 0
l3 = 0
l4 = 0
for j in lista:
  if j == 1:
    l1 += 1
  if j == 2:
    l2 += 1
  if j == 3:
    l3 += 1
  if j == 4:
    l4 += 1
c = (l1)%2 + (l2)%2 + (l3)%2 + (l4)%2
if c <= 2:
  print('YES')
else:
  print('NO')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=[]
for i in range(3):
    A.append(list(map(int,input().split())))


C=[0,0,0,0,0]
for i in range(len(A)) :
    C[A[i][0]]+=1
    C[A[i][1]]+=1


co=0
for i in range(1,5):
    if C[i]==1 or C[i]==3 :
        co+=1

if co==0 or co==2 :
    print("Yes")
else :
    print("No")


Failing test case input:
2 4
3 1
3 2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
A=[]
for i in range(3):
    A.append(list(map(int,input().split())))
 

C=[0,0,0,0,0]
for i in range(len(A)) :
    C[A[i][0]]+=1
    C[A[i][1]]+=1
 

co=0
for i in range(1,5):
    if C[i]==1 or C[i]==3 :
        co+=1
 
if co==0 or co==2 :
    print("YES")
else :
    print("NO")
Problem: p03130
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
list1 =[]
total =0
for i in range(3):
  MM = input().split()
  a = int(MM[0])
  b = int(MM[1])
  list1.append(a)
  list1.append(b)
for i in range(5):
  x = list1.count(i)
  if x >2:
    total +=1
if total == 0:
  print('Yes')
else:
  print('No')

Failing test case input:
1 2
3 2
4 1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
list1 =[]
total =0
for i in range(3):
  MM = input().split()
  a = int(MM[0])
  b = int(MM[1])
  list1.append(a)
  list1.append(b)
for i in range(5):
  x = list1.count(i)
  if x >2:
    total +=1
if total == 0:
  print('YES')
else:
  print('NO')

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


a0,b0= map(int,input().split())
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())

a=[a0,a1,a2,b0,b1,b2]
ans = 0
for i in range(1,5):
	count = 0
	for j in a:
		if i == j:
			count += 1
	if count > 2:
		ans = 1
		
if ans == 1:
	print('YES')
else:
	print('NO')

Failing test case input:
1 2
2 1
4 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):


a0,b0= map(int,input().split())
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())

a=[a0,a1,a2,b0,b1,b2]

if a.count(1) > 2:
	print('NO')
elif a.count(2) > 2:
	print('NO')
elif a.count(3) > 2:
	print('NO')
elif  a.count(4) >2:
  print('NO')
else:
	print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a_b=[]
a=[]
b=[]
judge=[]
judge_count=0
yes_no_count=0
for i in range(3):
    a_blank,b_blank=map(int,input().split())
    a.append(a_blank)
    b.append(b_blank)

a_b.extend(a)
a_b.extend(b)
for i in range(1,4+1):
    for j in a_b:
        if i==j:
            judge_count+=1
    judge.append(judge_count)
    judge_count=0

for i in judge:
    yes_no_count+=1
    if i==0 or i>=3:
        print("NO")
        break
    elif len(judge)==yes_no_count:
        print("YES")

print(yes_no_count)

Failing test case input:
3 3
4 4
1 2

Expected output:
YES


Actual output:
YES
4


Fixed submission (verdict: Accepted):
a_b=[]
a=[]
b=[]
judge=[]
judge_count=0
yes_no_count=0
for i in range(3):
    a_blank,b_blank=map(int,input().split())
    a.append(a_blank)
    b.append(b_blank)

a_b.extend(a)
a_b.extend(b)
for i in range(1,4+1):
    for j in a_b:
        if i==j:
            judge_count+=1
    judge.append(judge_count)
    judge_count=0

for i in judge:
    yes_no_count+=1
    if i==0 or i>=3:
        print("NO")
        break
    elif len(judge)==yes_no_count:
        print("YES")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())

l = [a1, b1, a2, b2, a3, b3]
flag = True

for i in range(1, 4):
    if not(1 <= l.count(i) and l.count(i) <= 2):
        flag = False

if flag:
    print("YES")
else:
    print("NO")


Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())

l = [a1, b1, a2, b2, a3, b3]
flag = True

for i in range(1, 5):
    if not(1 <= l.count(i) and l.count(i) <= 2):
        flag = False

if flag:
    print("YES")
else:
    print("NO")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=[list(map(int,input().split()))for i in range(3)]
cnt=[0,0,0,0]
for i in range(3):
    cnt[a[i][0]-1]+=1
    cnt[a[i][1]-1]+=1
flag=False
for i in range(3):
    if cnt[i]==3:
        flag=True
print("NO") if flag else print("YES")

Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a=[list(map(int,input().split()))for i in range(3)]
cnt=[0,0,0,0]
for i in range(3):
    cnt[a[i][0]-1]+=1
    cnt[a[i][1]-1]+=1
flag=False
for i in range(4):
    if cnt[i]==3:
        flag=True
print("NO") if flag else print("YES")

Problem: p03130
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())

A=[a1,b1,a2,b2,a3,b3]
B=set(A)
if len(B)==4:
    print('YES')
else:
    print('NO')

Failing test case input:
4 2
1 3
3 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())

A=[a1,b1,a2,b2,a3,b3]

import collections
L=collections.Counter(A)

if set(list(L.values()))==set([1,2,2,1]):
    print('YES')
else:
    print('NO')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li = [0,0,0,0]
for i in range(0,3):
    a,b = map(int,input().split())
    a -= 1
    b -= 1
    li[a] += 1
kisuu = 0
for i in range(0,3):
    if li[i] % 2 == 1:
        kisuu += 1
if kisuu == 0 or kisuu == 2:
    print("YES")
else:
    print("NO")


Failing test case input:
1 4
2 2
3 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
li = [0,0,0,0]
for i in range(0,3):
    a,b = map(int,input().split())
    a -= 1
    b -= 1
    li[a] += 1
    li[b] += 1
kisuu = 0
for i in li:
    if i % 2 == 1:
        kisuu += 1
if kisuu == 2:
    print("YES")
else:
    print("NO")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ds = {}
for i in range(3):
    s = input()
    n, k = [int(i) for i in s.split(' ')]
    
    if n in ds:
        ds[n] += 1
    else:
        ds[n] = 1

for k in ds:
    if ds[k] == 3:
        print('NO')
print('YES')




Failing test case input:
3 2
3 4
1 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
ds = {}
for i in range(3):
    s = input()
    ks = [int(i) for i in s.split(' ')]
    for k in ks:
        if k in ds:
            ds[k] += 1
        else:
            ds[k] = 1


for k in ds:
    if ds[k] == 3:
        print('NO')
        exit()
print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L = list(map(int,input().split()))
M = list(map(int,input().split()))
N = list(map(int,input().split()))
O = [L,M,N]
P = L.count(1)+M.count(1)+N.count(1)
Q = L.count(2)+M.count(2)+N.count(2)
R = L.count(3)+M.count(3)+N.count(3)
S = L.count(4)+M.count(4)+N.count(4)
T = [P,Q,R,S]
T.sort()
if T[0] == T[1] == 1:
  if T[2] == T[3] == 2:
    if [T[1],T[2]] in O:
      print('YES')
    else:
      print('NO')
  else:
    print('NO')
else:
  print('NO')

Failing test case input:
1 1
2 4
3 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
L = list(map(int,input().split()))
M = list(map(int,input().split()))
N = list(map(int,input().split()))
O = [L,M,N]
P = L.count(1)+M.count(1)+N.count(1)
Q = L.count(2)+M.count(2)+N.count(2)
R = L.count(3)+M.count(3)+N.count(3)
S = L.count(4)+M.count(4)+N.count(4)
T = [P,Q,R,S]
T.sort()
if T[0] == T[1] == 1:
  if T[2] == T[3] == 2:
    if [T[1],T[2]] or [T[2],T[1]] in O:
      print('YES')
    else:
      print('NO')
  else:
    print('NO')
else:
  print('NO')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
node= [0, 0, 0, 0]
for i in range(3):
    ai , bi = list(map(int, input().split()))
    node[ai-1] +=1
    node[bi-1] +=1

odd = 0
for ele in node:
    if ele/2 == 1:
        odd+=1


if odd == 2:
    print('YES')
else:
    print('No')

Failing test case input:
3 4
1 3
2 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
node1234= [0, 0, 0, 0]
for i in range(3):
    ai , bi = list(map(int, input().split()))
    
    node1234[ai-1] +=1
    node1234[bi-1] +=1

odd = 0
for ele in node1234:
    if ele/2 == 1:
        odd+=1


if odd == 2:
    print('YES')
else:
    print('NO')

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


num =[]
ans =0
for i in range(3):
    x,y = map(int,input().split(" "))
    num.append(x)
    num.append(y)
for i in range(1,4):
    if num.count(i)>=3:
        ans +=1
    if num.count(i)==0:
        ans +=1
if ans>0:
    print("NO")
else:
    print("YES")


Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):


num =[]
ans =0
for i in range(3):
    x,y = map(int,input().split(" "))
    num.append(x)
    num.append(y)
for i in range(1,5):

    if num.count(i)==3:
        ans +=1
if ans>0:
    print("NO")
else:
    print("YES")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if l[i] == l[i+1] == l[i+2]:
        x = False
        break

for j in range(4):
    try:
        n = l.index(j)
    except ValueError:
        x = False


print("YES" if x == True else "No")

Failing test case input:
1 3
2 4
4 3

Expected output:
YES


Actual output:
No


Fixed submission (verdict: Accepted):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if (l[i] == l[i+1]) and (l[i] == l[i+2]):
        x = False
if x == True:
    print("YES")
else:
    print("NO")

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

ans = [0] * 4

for i in range(3):
  a, b = map(int, input().split())
  ans[a-1] += 1
  ans[b-1] += 1
  
for i in range(4):
  if ans[i] >= 3:
    print("No")
    exit()

print("Yes")
  

Failing test case input:
1 4
2 2
3 3

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):

ans = [0] * 4

for i in range(3):
  a, b = map(int, input().split())
  ans[a-1] += 1
  ans[b-1] += 1
  
for i in ans:
  if i >= 3:
    print("NO")
    exit()

print("YES")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Inp1 = list(input().split())
Inp1.extend(input().replace(' ',''))
Inp1.extend(input().replace(' ',''))

Inp_dict = {'1':0,'2':0,'3':0,'4':0}
for i in Inp1:
	Inp_dict[i] +=1

ans = list()
for k in Inp_dict.keys():
	if Inp_dict[k] == 2 : ans.extend(k)

if len(ans) == 2: print('Yes')
else: print('No') 

Failing test case input:
1 2
2 2
4 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
Inp1 = list(input().split())
Inp1.extend(input().replace(' ',''))
Inp1.extend(input().replace(' ',''))

Inp_dict = {'1':0,'2':0,'3':0,'4':0}
for i in Inp1:
	Inp_dict[i] +=1

ans = list()
for k in Inp_dict.keys():
	if Inp_dict[k] == 2 : ans.extend(k)

if len(ans) == 2: print('YES')
else: print('NO')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())
if [a1, b1, a2, b2, a3, b3].count(1) == 3 or [a1, b1, a2, b2, a3, b3].count(2) == 3 or [a1, b1, a2, b2, a3, b3].count(3) == 3 or [a1, b1, a2, b2, a3, b3].count(4) == 3:
    print("No")
else:
    print("Yes")

Failing test case input:
3 2
3 4
1 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())
if [a1, b1, a2, b2, a3, b3].count(1) == 3 or [a1, b1, a2, b2, a3, b3].count(2) == 3 or [a1, b1, a2, b2, a3, b3].count(3) == 3 or [a1, b1, a2, b2, a3, b3].count(4) == 3:
    print("NO")
else:
    print("YES")
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = 3
num_list = [list(map(int, input().split())) for _ in range(n)]
N = (sum(num_list, []))
N1 = N.count(1)
N2 = N.count(2)
N3 = N.count(3)
N4= N.count(4)
if (N1 or N2 or N3 or N4) > 3:
    print('NO')
else:
    print('YES')


Failing test case input:
1 4
2 2
2 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
n = 3
num_list = [list(map(int, input().split())) for _ in range(n)]
N = (sum(num_list, []))
N1 = N.count(1)
N2 = N.count(2)
N3 = N.count(3)
N4= N.count(4)
if N1 > 2 or N2 > 2 or N3 > 2 or N3 > 2 or N4 > 2:
    print('NO')
else:
    print('YES')

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = []
result = "YES"
for i in range(3) :
    a.extend(input().split(" "))

for i in range(4) :
    if a.count(str(i)) >= 3 or a.count(str(i)) == 0:
        result = "NO"
        break
    
print(result)

Failing test case input:
1 2
3 2
4 3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a = []
result = "YES"
for i in range(3) :
    a.extend(input().split(" "))

for i in range(1,5) :
    if a.count(str(i)) >= 3 or a.count(str(i)) == 0:
        result = "NO"
        break
    
print(result)

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
cnt = [0] * 4
for _ in range(3):
    a, b = map(int, input().split())
    cnt[a-1] += 1
    cnt[b-1] += 1

if 3 in cnt:
    print("No")
else:
    print("YES")

Failing test case input:
2 4
1 2
2 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
cnt = [0 for i in range(4)]

for i in range(3):
    a, b = map(int, input().split())
    cnt[a-1] += 1
    cnt[b-1] += 1

if cnt.count(2) == 2 and cnt.count(1) == 2:
    print("YES")
else:
    print("NO")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=[]
for i in range(3):
  a,b=map(int,input().split())
  c.append(a)
  c.append(b)
c=sorted(c)
ans='YES'
for j in range(4):
  cnt=0
  for i in range(6):
    if c[i]==j:
      cnt+=1
  if cnt>2:
    ans='NO'
    break

print(ans)


Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
c=[]
for i in range(3):
  a,b=map(int,input().split())
  c.append(a)
  c.append(b)
c=sorted(c)
ans='YES'
for j in range(1,5):
  cnt=0
  for i in range(6):
    if c[i]==j:
      cnt+=1
  if cnt>2:
    ans='NO'
    break

print(ans)

Problem: p03130
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
l = []

for i in range(3):
    l += list(map(int, input().split()))
print(l)

for i in range(4):
    if l.count(i) == 3:
        print('NO')
        break
else:
    print('YES')

Failing test case input:
2 1
3 4
4 3

Expected output:
YES


Actual output:
[2, 1, 3, 4, 4, 3]
YES


Fixed submission (verdict: Accepted):
l = []

for _ in range(3):
    l += list(map(int, input().split()))

for i in range(4):
    if l.count(i + 1) == 3:
        print('NO')
        break
else:
    print('YES')
Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ab = []
for i in range(3):
    ab.extend(list(map(int,input().split())))
    
    
for i in range(1,4):
    if ab.count(i) >= 3:
        print("NO")
        exit()
        
print("YES")

Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
ab = []
for i in range(3):
    ab.extend(list(map(int,input().split())))
    
    
for i in range(1,5):
    if ab.count(i) >= 3:
        print("NO")
        exit()
        
print("YES")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def f():
    a = list(map(int, input().split()))+list(map(int, input().split()))+list(map(int, input().split()))
    b = []
    for i in range(4):
        b.append(sum(x==i for x in a))
    for i in b:
        if i > 2:
            print('NO')
            return
    print('YES')
f()

Failing test case input:
1 2
4 4
4 3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def f():
    a = list(map(int, input().split()))+list(map(int, input().split()))+list(map(int, input().split()))
    b = []
    for i in range(4):
        b.append(sum(x==i+1 for x in a))
    for i in b:
        if i > 2:
            print('NO')
            return
    print('YES')
f()

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if (l[i] == l[i+1]) and (l[i] == l[i+2]):
        x = False

print("YES" if x == True else "No")

Failing test case input:
1 4
2 3
3 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())

l = [a1,a2,a3,b1,b2,b3]
l.sort()

x = True

for i in range(4):
    if (l[i] == l[i+1]) and (l[i] == l[i+2]):
        x = False
if x == True:
    print("YES")
else:
    print("NO")

Problem: p03130
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())


cnt = {1: 0, 2: 0, 3: 0, 4: 0}
for i in range(4):
    if not i+1 in [a1, a2, a3, b1, b2, b3]:
        print('NO')
        exit()

lis = [a1, a2, a3, b1, b2, b3]

c = 0
for l in range(4):
    cnt = lis.count(l+1)
    if cnt > 1:
        c += 1

if c <= 2:
    print('NO')

print('YES')


Failing test case input:
3 1
3 3
4 2

Expected output:
NO


Actual output:
NO
YES


Fixed submission (verdict: Accepted):
a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())

cnt = {1: 0, 2: 0, 3: 0, 4: 0}
for i in range(4):
    if not i+1 in [a1, a2, a3, b1, b2, b3]:
        print('NO')
        exit()

lis = [a1, a2, a3, b1, b2, b3]

c = 0
for l in range(4):
    cnt = lis.count(l+1)
    if cnt > 1:
        c += 1

if c < 2:
    print('NO')
    exit()

print('YES')