qyliang/CodeNanoFix huggingface dataset:
Buggy code:
A = list(map(int,input().split()))
A=set(A)
ans='No'

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

Fixed code:
A = list(map(int,input().split()))
A=set(A)

ans='No'
if len(A) == 2:
    ans='Yes'
    
print(ans)
Buggy code:
a,b,c=map(int(input().split()))
if a==b and a!=c:
  print("Yes")
elif b==c and b!=a:
  print("Yes")
elif c==a and c!=b:
  print("Yes")
else:
  print("No")
  


Fixed code:
a,b,c= map(int,input().split())
if (a==b and b!=c) or (a==c and a!=b) or (c==b and a!=b):
    print('Yes')
else:
    print('No')
Buggy code:
a,b,c=int(input().split())
if a==b and a!=c:
  print("Yes")
elif b==c and b!=a:
  print("Yes")
elif c==a and c!=b:
  print("Yes")
else:
  print("No")
  


Fixed code:
a, b, c = list(map(int, input().split()))
if a==b and b!=c:
    print('Yes')
elif a==c and a!=b:
    print('Yes')
elif c==b and b!=a:
    print('Yes')
else:
    print('No')
Buggy code:
data = input().split()

a = int(data[0])
b = int(data[1])
c = int(data[2])

if a == b != c or a != b == c or a == c != b:
  ans = "Yes"
else:
  ans = "no"
  
print(ans)


Fixed code:
data = input().split()
 
a = int(data[0])
b = int(data[1])
c = int(data[2])
 
if a == b != c or a != b == c or a == c != b:
  ans = "Yes"
else:
  ans = "No"
  
print(ans)
Buggy code:
A，B，C = list(map(int, input().split()))
vincent = [A,B,C]
vincent1 = list(set(vincent))
if len(vincent1) == 2:
  print('Yes')
else:
  print('No')


Fixed code:
A, B, C = list(map(int, input().split()))
vincent = [A,B,C]
vincent1 = list(set(vincent))
if len(vincent1) == 2:
    print("Yes")
else:
    print("No")
Buggy code:
import sys
li = list(map(int,input().split()))
li.sort()
for i in range(3):
  if(str(li[i]) == str(li[i+1]) == str(li[i+2])):
    print("No")
    sys.exit()
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break
else:
  print("No")

Fixed code:
import sys
li = list(map(int,input().split()))
li.sort()
if(str(li[0]) == str(li[1]) == str(li[2])):
  print("No")
  sys.exit()
if(str(li[0]) != str(li[1]) != str(li[2])):
  print("No")
  sys.exit()
for i in range(3):
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break
Buggy code:
A,B,C=map(int,input().split())

if A==B==C:
	print("No")
elif A!=B!=C:
	print("No")
else:
	print("Yes")

Fixed code:
A, B, C = map(int, input().split())
if A == B and A == C:
  print("No")
elif A != B and B != C and C != A:
  print("No")
else:
  print("Yes")
Buggy code:
a,b,c = map(int,input().split())
if(a==b==c):
  print("No")
elif(a==c):
  print("Yes")
elif(a==c):
  print("Yes")
elif(b==c):
  print("Yes")
else:
  print("No")

Fixed code:
a,b,c=map(int, input().split())
if a==b and b==c:
    print("No")
elif a!=b and b!=c and a!=c:
    print("No")
else:
    print("Yes")
Buggy code:
A, B, C = map(int, input().split())
if A == B and A == C:
    print("Yes")
elif A == B or A == C or B == C:
    print("Yes")
else:
    print("No")



Fixed code:
A,B,C=map(int,input().split())

if(A==B and B!=C):
    print("Yes")
elif(A==C and A!=B):
    print("Yes")
elif(B==C and A!=B):
    print("Yes")
else:
    print("No")
Buggy code:
arr=list(map(int,input().split()))
cnt=0
if(arr[0]==arr[1] and arr[1]!=arr[0]):
  print("Yes")
elif(arr[1]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
elif(arr[0]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
else:
  print("No")

Fixed code:
arr=list(map(int,input().split()))
cnt=0
if(arr[0]==arr[1] and arr[1]!=arr[2]):
  print("Yes")
elif(arr[1]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
elif(arr[0]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
else:
  print("No")
Buggy code:
A, B, C = map(int, input().split())
if A == B or A == C or B == C:
    print("Yes")
else:
    print("No")



Fixed code:
A, B, C = map(int, input().split())
if A == B and A == C:
    print("No")
elif A == B or A == C or B == C:
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = map(int, input().split())
if (a==b) and (b!=c):
  print('Yes")
elif (b==c) and (c!=a):
  print('Yes")
elif (a==c) and (c!=b):
  print('Yes")
else:
  print('No')


Fixed code:
a, b,c = map(int, input().split())
if a==b and a!=c:
    print("Yes")
elif a==c and a!=b:
    print("Yes")
elif b==c and a!=b:
    print("Yes")
else:
    print("No")
Buggy code:
A, B, C = map(int, input())

if (A = B and B = C) or (A != B and B != C and C != A):
    print("No")

else:
    print("Yes")

Fixed code:
A, B, C = map(int, input().split())

if (A == B and B == C) or (A != B and B != C and C != A):
    print("No")

else:
    print("Yes")
Buggy code:
A, B, C = map(int, input().split())

if (A = B and B = C) or (A != B and B != C and C != A):
    print("No")

else:
    print("Yes")


Fixed code:
A , B ,C = map(int,input().split())
if A !=B and A!=C and B != C:
    print("No")
elif A == B and A==C:
    print("No")
else:
    print("Yes")
Buggy code:
import collections
a = input().split()
c = list(collections.Counter(a).values())
b = 0
for k in c:
  b += 1
  if k == 2:
    print("Yes")
    break
  elif b == 3:
    print("No")

Fixed code:
import collections
a = input().split()
c = list(collections.Counter(a).values())
b = 0
for k in c:
  b += 1
  if k == 2:
    print("Yes")
    break
  elif b == 3:
    print("No")
  elif k == 3:
    print("No")
Buggy code:
input_line = input().split(' ')

num=set(input_line)

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

Fixed code:
input_line = input().split(' ')

num=set(input_line)

if len(num)==2:
  print('Yes')
else:
  print('No')
Buggy code:
a,b,c = map(int,input().split())
if a == b and b == c and c == a: print('Yes')
elif a != b and b != c and c != a: print('Yes')
else: print('No')

Fixed code:
a, b, c = list(map(int, input().split()))

if a == b == c:
	print("No")
elif a != b and b != c and c != a:
	print("No")
else:
	print("Yes")
Buggy code:
a, b, c = map(int, input().split())

if a == b or b == c or a == c:
    print("Yes")
else:
    print("No")

Fixed code:
a, b, c = map(int, input().split())

if a == b or b == c or c == a:
    if a == b and b == c:
        print('No')
    else:
        print('Yes')
else:
    print('No')
Buggy code:
a,b,c = map(int,input().split())
if a == b or a == c:
    if b != c:
        print('Yes')
    else:
        print('No')
elif b == c:
    print('Yes')



Fixed code:
a, b ,c = map(int,input().split())

if a==b and b!=c:
  print("Yes")
elif c==b and b!=a:
  print("Yes")
elif a==c and b!=c:
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c = map(input().split())
if a == b or a == c:
    if b != c:
        print('Yes')
    else:
        print('No')
elif b == c:
    print('Yes')



Fixed code:
a, b, c = map(int, input().split())
if a == b != c or b == c != a or c == a != b :
    print('Yes')
else :
    print('No')
Buggy code:
a =  map(int,intpu().split())
if len(set(a)) == 2:
  print("Yes")
else:
  print("No")

Fixed code:
a = map(int,input().split())
if len(set(a)) == 2:
  print("Yes")
else:
  print("No")
Buggy code:
a, b, c = map(int, input().split())

if ((a == b and b == c) or (a != b and b != c)):
    print("No")
else:
    print("Yes")

Fixed code:
a,b,c=map(int,input().split())
if a==b==c==a or a!=b!=c!=a:
    print("No")
else:
    print("Yes")
Buggy code:
a,b,c  = map(int,input().split())

if a == b and b == c:
  print('No')
elif a == b and b != c:
    print('Yes')
elif a != b and b == c:
    print('Yes')
elif a != b and b != c:
    print('No')


Fixed code:
a,b,c  = map(int,input().split())

if a == b and b == c:
  print('No')
elif a == b and b != c:
    print('Yes')
elif a != b and b == c:
    print('Yes')
elif a == c and b != c:
    print('Yes')
elif a != b and b != c:
    print('No')
Buggy code:
A,B,C = map(int,input().split())
if(A==B && B != C):
  print("No")
elif(A==C && A != B):
  print("Yes")
elif(B==C && B != A):
  print("Yes")
else:
  print("No")
  

Fixed code:
A, B, C=map(int,input().split())
if A==B and A!=C:
  print('Yes')
elif B==C and B!=A:
  print('Yes')
elif A==C and A!=B:
  print('Yes')
else:
  print('No')
Buggy code:
i = list(map(int, input().split()))
s = set(i)
if len(s) == 1:
    print("No")
elif len(i) == len(s):
    print("Yes")
else:
    print("No")

Fixed code:
i = list(map(int, input().split()))
s = set(i)
if len(s) == 1:
    print("No")
elif len(i) != len(s):
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = map(int, input().split())

if (a == b and b == c):
    print("No")
else:
    print("Yes")

Fixed code:
a, b, c = map(int, input().split())

if ((a == b and b == c and c == a) or (a != b and b != c and c != a)):
    print("No")
else:
    print("Yes")
Buggy code:
A, B, C = map(int, input().split())

if A == B or B == C or C == A:
  if not A == B and B == C:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Fixed code:
A, B, C = map(int, input().split())

if A == B or B == C or C == A:
  if A == B and B == C:
    print("No")
  else:
    print("Yes")
else:
  print("No")
Buggy code:
a,b,c=map(int,input().split())

if a=b and b=c :
    print("Yes")
else:
    print('No') 

Fixed code:
a, b, c = map(int, input().split())
if (a == b and a != c) or (b == c and b != a) or (c == a and c != b):
  print('Yes')
else:
  print('No')
Buggy code:
n = input().split()
n= [int(i) for i in n]
n.sort()


if n[1] == n[0]:
  if n[2]== n[1]:
    print("No")
    
elif n[2] == n[1]: print("Yes")
else: print("No")


Fixed code:
n = input().split()
n= [int(i) for i in n]
n.sort()

if n[1] == n[0]:
    if n[2]==n[1]:
        print("No")
    else:
        print("Yes")
elif n[2] == n[1]:
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = map(int, input().split())

if a == b:
    print("Yes")
elif b == c:
    print("Yes")
elif a == c:
    print("Yes")
else:
    print("No")

Fixed code:
a, b, c = map(int, input().split())
if a == b and a != c:
    print("Yes")
elif a == c and a != b:
    print("Yes")
elif b == c and b != a:
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c =map(int,input().split())
flag1 = 0
flag2 = 0
if a == b:
  flag1 = 1
if b == c:
  flag2 =1
if flag1 ==1 and flag2 ==1:
  print("No")
elif flag1 ==0 and flag2 ==0:
  print("No")
else:
  print("Yes")

Fixed code:
a,b,c =map(int,input().split())
flag1 = 0
flag2 = 0
flag3 = 0
if a == b:
  flag1 = 1
if b == c:
  flag2 =1
if a == c:
  flag3 =1
if flag1 ==1 and flag2 ==1:
  print("No")
elif flag1 ==0 and flag2 ==0 and flag3 == 0:
  print("No")
else:
  print("Yes")
Buggy code:
a, b, c = map(int, input().split())

if a == b == c:
    print('No')
else:
    print('Yes')


Fixed code:
a,b,c=map(int,input().split())
if a==b:
  if a==c:
    print("No")
  else:
    print("Yes")
elif a==c:
  print("Yes")
elif b==c:
  print("Yes")
else:
  print("No")
Buggy code:
A,B,C=map(int,input().split())
if A==B and B!=C:
    print("Yes")
if A==C and A!=B:
    print("Yes")
if B==C and B!=A:
    print("Yes")
if A==B==C:
    print("No")
if A!=B and B!=C and C!=A:
    print("NO")

Fixed code:
A,B,C=map(int,input().split())
if A==B and B!=C:
    print("Yes")
if A==C and A!=B:
    print("Yes")
if B==C and B!=A:
    print("Yes")
if A==B==C:
    print("No")
if A!=B and B!=C and C!=A:
    print("No")
Buggy code:
a, b, c = map(int, input().split())

if a == b and b == c and c == a:
    print('No')
else:
    print('Yes')


Fixed code:
a,b,c=map(int,input().split())

if a==b==c:
    print('No')
elif a!=b and b!=c and c!=a:
    print('No')
else:
    print('Yes')
Buggy code:
import os, sys, re, math

(A, B, C) = [int(n) for n in input().split()]

if A == B == C:
    print('No')
else:
    print('Yes')


Fixed code:
import os, sys, re, math

(A, B, C) = [int(n) for n in input().split()]

if (A == B and B != C) or (A == C and A != B) or (B == C and A != B):
    print('Yes')
else:
    print('No')
Buggy code:
a, b, c = map(int, input().split())
if a==b==c or (a!=b and b!=c and c !=a):
  print('No')
else:
  print('No')

Fixed code:
a, b, c = map(int, input().split())
if a==b==c or (a!=b and b!=c and c !=a):
  print('No')
else:
  print('Yes')
Buggy code:
print("Yes" if 2==set(list(map(int,input().split()))) else "No")


Fixed code:
print("Yes" if 2==len(set(list(map(int,input().split())))) else "No")
Buggy code:
a,b,c = map(int,input().split())
if a==b and b==c:
  print("No")
elif a!=b and b!=c or a!=c and c!=b:
  print("No")
else:
  print("Yes")

Fixed code:
a, b, c = map(int, input().split())
if a==b==c:
    print("No")
elif a!=b!=c!=a:
    print("No")
else:
    print("Yes")
Buggy code:
a,b,c = map(int, input().split())

if a==b or b==c:
  print("Yes")
else:
  print("No")


Fixed code:
a,b,c = map(int, input().split())
if (a==b and a!=c) or (a==c and a!=b) or (c==b and c!=a):
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c=map(int, input.split())
count = 0
if a==b:
  count = count + 1
if b==c:
  count = count + 1
if c==a:
  count = count + 1
if count == 1:
  print("Yes")
else:
  print("No")

Fixed code:
a,b,c = map(int, input().split())
cnt=0
if a == b:
    cnt+=1
if c == b:
    cnt+=1
if a == c:
    cnt+=1

if cnt ==1:
    print('Yes')
else:
    print('No')
Buggy code:
A, B, C = map(int, input().split())
if A == B:
  print("Yes")
  exit()
if B == C:
  print("Yes")
  exit()
if A == C:
  print("Yes")
  exit()

print("No")

Fixed code:
A, B, C = map(int, input().split())
if A == B == C:
   print("No")
   exit()
if A == B:
  print("Yes")
  exit()
if B == C:
  print("Yes")
  exit()
if A == C:
  print("Yes")
  exit()

print("No")
Buggy code:
a, b, c = map(int, input().split())

if a == b and a != c:
    print("Yes")
elif b == c and b != c:
    print("Yes")
elif c == a and c != a:
    print("Yes")
else:
    print("No")


Fixed code:
a, b, c = map(int, input().split())
if a == b == c:
  print("No")
elif a != b and b != c and  a != c:
  print("No")
else:
  print("Yes")
Buggy code:
a, b, c = map(int, input().split())
if a == b == c or a != b != c:
  print("No")
else:
  print("Yes")

Fixed code:
a,b,c = list(map(int,input().split(" ")))
if (a == b and a != c) or (a == c and a != b) or (c == b and a != b):
    print("Yes")
else:
    print("No")
Buggy code:

new_list = list(map(int,input().split()))
if len(set(new_list)) == len(new_list):
    print("No")
else:
    print("Yes")

Fixed code:

new_list = list(map(int,input().split()))
if len(set(new_list)) == len(new_list) or len(set(new_list)) == 1:
    print("No")
else:
    print("Yes")
Buggy code:
def equ(a,b):
  return 1*(a==b)
a,b,c = map(input().split())
ans = equ(a,b)+equ(b,c) +equ(c,a)
print('Yes' if ans ==1 else 'No')


Fixed code:
def equ(a,b):
  return 1*(a==b)
a,b,c = map(int,input().split())
ans = equ(a,b)+equ(b,c) +equ(c,a)
print('Yes' if ans ==1 else 'No')
Buggy code:
a,b,c=map(int,input().split())

if a==b and b==c and c==a:
  print("No")
else:print("Yes")

Fixed code:
a,b,c=map(int,input().split())

if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:print("Yes")
Buggy code:
a = set(map(int,input().split()))

if len(a)==2:
  print('YES')
else:
  print('No')

Fixed code:
a = set(map(int,input().split()))

if len(a)==2:
  print('Yes')
else:
  print('No')
Buggy code:
a, b, c = list(map(int, input.split()))

if a == b == c:
  print('No')
elif a != b and a != c and b != c:
  print('No')
else:
  print('Yes')

Fixed code:
a,b,c=list(map(int,input().split()))
if (a==b and a!=c)or (a==c and a!=b)or (b==c and b!=a):
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = map(int, input().split())
if a == b and b == c:
    print('No')
else:
    print('Yes')
    

Fixed code:
a,b,c=map(int,input().split())
if a==b and b==c:print("No")
elif a!=b and b!=c and c!=a:print("No")
else:print("Yes")
Buggy code:
A, B, C = input().split()

if A == B and B == C and C == A:
  print('No')
if A != B and B != A and C != A:
  print('No')
else:
  print('Yes')

Fixed code:
A,B,C = input().split()

if A == B and A != C:
    print('Yes')
elif A == C and B != C:
    print('Yes')
elif B == C and A != B:
    print('Yes')
else:
    print('No')
Buggy code:
def main():
    a, b, c = map(int, input().split())
    if (a == b and b != c) or (b == c and a != b):
        print('Yes')
    else:
        print('No')
main()

Fixed code:
def main():
    a, b, c = map(int, input().split())
    if (a == b and b != c) or (b == c and a != b) or (a == c and a != b):
        print('Yes')
    else:
        print('No')
main()
Buggy code:
A, B, C = map(int, input().split())

if A == B or B == C or C == A:
    print("Yes")
else:
    print("No")


Fixed code:
A, B, C = map(int, input().split())

if (A == B and B != C) or (B == C and C != A) or (C == A and A != B):
    print("Yes")
else:
    print("No")
Buggy code:
    x = list(map(int,input().split()))
    if len(set(x))== 2:
        print("Yes")
    else:
        print("No")

Fixed code:
a=list(map(int,input().split()))
a=set(a)
if len(a)==2:
    print('Yes')
else:
    print('No')
Buggy code:
import sys

for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
    
if (A - B) * (B - C) * (C - A) == 0 and (A - B) + (B - C) + (C - A) == 2:
  print("Yes")
else:
  print("No")

Fixed code:
import sys
 
for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
  
if ((A - B) * (B - C) * (C - A) == 0) and (int(A!=B) + int(B!=C) + int(C!=A)):
  print("Yes")
else:
  print("No")
Buggy code:
a, b, c = map(int, input().split())

if a == b == c or a != b != c:
    print('No')
else:
    print('Yes')


Fixed code:
a,b,c=map(int,input().split())
print('No' if a==b==c==a or a!=b!=c!=a else 'Yes')
Buggy code:
a,b,c=map(int,input().split())

if a==b and b==c:
  print('No')
elif a==b or b==c or a==c:
  print('Yes')
else:
  print('Yes')

Fixed code:
a, b, c = (map(int, input().split()))
if a == b and b == c and a ==c:
    print('No')
elif a !=b and b != c and a != c:
    print('No')
else:
    print('Yes')
Buggy code:
A,B,C = input().split()
#if int(A) == int(B) and int(A) != int(C) and int(B) != int(C):
#    print("Yes")
#if int(A) == int(C) and int(A) != int(B) and int(B) != int(C):
if int(A) != int(B) and int(A) != int(C)and int(B) != int(C):
    print("No")
if int(A) == int(B) == int(C):
    print("No")
else:
    print("Yes")

Fixed code:
A,B,C = input().split()
if int(A) != int(B) and int(A) != int(C) and int(B) != int(C):
    print("No")
elif int(A) == int(B) == int(C):
    print("No")
else:
    print("Yes")
Buggy code:
a = list(map(int, input().split()))
sa = set(a)
if len(sa) == 1:
  print('No')
else:
  print('Yes')

Fixed code:
a = list(map(int, input().split()))
sa = set(a)
if len(sa) == 2:
  print('Yes')
else:
  print('No')
Buggy code:

A, B, C = map(int,input().split())
if A == B == C:
    print('No')
elif B == C:
    print('Yes')
elif A == C:
    print('Yes')
elif A == B:
    print('Yes')
else:
    print('No'

Fixed code:
A, B, C = map(int, input().split())
if A == B and B ==C:
  print('No')
elif A != B and B != C and C != A:
  print('No')
else:
  print('Yes')
Buggy code:
a = list(map(int, input().split()))
a.sort()
count = 0
for i in range(len(a)-1):
  if a[i] == a[i+1]:
    count += 1
if count == 2:
  print("Yes")
else:
  print("No")

Fixed code:
a = list(map(int, input().split()))
a.sort()
count = 0
for i in range(len(a)-1):
  if a[i] == a[i+1]:
    count += 1
if count == 1:
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c = map(int,input().split)
P = set([a,b,c])
if len(P) == 2:
  print('Yes')
else:
  print('No')

Fixed code:
a,b,c = map(int,input().split())
P = set([a,b,c])
if len(P) == 2:
  print('Yes')
else:
  print('No')
Buggy code:
a, b, c = map(int, input().split())
print('Yes' if a==b or a==c or b==c else 'No')

Fixed code:
a, b, c = map(int, input().split())
print('Yes' if (a==b or a==c or b==c) and not(a==b==c) else 'No')
Buggy code:
# coding: utf-8
# Your code here!
A,B,C = map(int,input().split())
if A == B and B == C:
    print("No")
elif A == B or B ==C or A == C:
    print("Yse")
else:
    print("No")

Fixed code:
# coding: utf-8
# Your code here!
A,B,C = map(int,input().split())
if A == B and B == C:
    print("No")
elif A == B or B ==C or A == C:
    print("Yes")
else:
    print("No")
Buggy code:
i = list(map(int, input().split())
if i[0]==i[1] and i[0]!=i[2]:
         print("Yes")
elif i[0]==i[2] and i[0]!=i[1]:
         print("Yes")
elif i[1]==i[2] and i[0]!=i[2]:
         print("Yes")   
else:
         print("No")

Fixed code:
i=list(map(int, input().split()))
if i[0]==i[1] and i[0]!=i[2]:
         print("Yes")
elif i[0]==i[2] and i[0]!=i[1]:
         print("Yes")
elif i[1]==i[2] and i[0]!=i[2]:
         print("Yes")   
else:
         print("No")
Buggy code:
a = [int(x) for x  in input().split()]

if len(set(a)) == 2:
  print('yes')
 
else:
  print('No')
  

Fixed code:
a = [int(x) for x in input().split()]
if len(set(a)) == 2:
  print('Yes')
else:
  print('No')
Buggy code:
a, b, c = map(int, input().split())

if a == b or b == c or a == c :
    print("Yes")
else :
    print("No")


Fixed code:
a, b, c = map(int, input().split())

if a == b != c or b == c != a or a == c != b :
    print("Yes")
else :
    print("No")
Buggy code:
N =[int(i) for i in input().split(" ")]
j=0
count=0
for k in range(1,len(N)):
    if N[j]==N[k]:
        count += 1
    j+=1
    
if count==1:
    print("Yes")
else:
    print("No")

Fixed code:
N =[int(i) for i in input().split(" ")]
count=0
for j in range(len(N)-1):
    for k in range(j+1,len(N)):
        if N[j]==N[k]:
            count += 1
if count==1:
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = map(int, input().split())
if a == b:
    if a != c:
    print("Yes")
elif b == c:
    if b != a:
    print("Yes")
elif a == c:
    if a != b:
        print("Yes")
else:
    print("No")

Fixed code:
a, b, c = map(int, input().split())

if a == b and a == c and b == c:
    print('No')
elif a != b and a != c and b != c:
    print('No')
else:
    print('Yes')
Buggy code:
a, b, c = map(int, input().split())
if(a==b or b==c or c==a and not (a==b and b==c)):print("Yes")
else:print("No")

Fixed code:
a, b, c = map(int, input().split())
if(a==b and b==c):print("No")
elif(a==b or b==c or c==a):print("Yes")
else:print("No")
Buggy code:
a, b, c = map(int, input().split())

if a == b and a == c:
    print("No")
elif a == b or a == c or b == c:
    print("Yes")
else:
    print("Yes")


Fixed code:
a, b, c = map(int, input().split())

if a == b and a == c:
    print("No")
elif a == b or a == c or b == c:
    print("Yes")
else:
    print("No")
Buggy code:
# -*- coding: utf-8 -*-
a,b,c = list(map(int,input().split()))
ret = "No"
if len(set(a,b,c))==2:
    ret = "Yes"
print(ret)


Fixed code:
# -*- coding: utf-8 -*-
a,b,c = list(map(int,input().split()))
ret = "No"
if len(set([a,b,c]))==2:
    ret = "Yes"
print(ret)
Buggy code:
a, b, c = (int(x) for x in input().split())
def check(a, b, c):
    if a==b and not(a==b==c): return(True)
    if a==c and not(a==b==c): return(True)
    if b==c and not(a==b==c): return(True)
    return False

if check(a, b, c):
    print('Yes')
else:
    print('no')

Fixed code:
a, b, c = (int(x) for x in input().split())
def check(a, b, c):
    if a==b and not(a==b==c): return(True)
    if a==c and not(a==b==c): return(True)
    if b==c and not(a==b==c): return(True)
    return False

if check(a, b, c):
    print('Yes')
else:
    print('No')
Buggy code:
a = list(map(int, input().split()))
A = a[0]
B = a[1]
C = a[2]

if (A == B == C) or (A is not B and B is not C) :
    print("No")
else:
    print("Yes")

Fixed code:
a = list(map(int, input().split()))
A = a[0]
B = a[1]
C = a[2]

if (A == B == C) or (A is not B and B is not C and C is not A) :
    print("No")
else:
    print("Yes")
Buggy code:
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
if c==b and b!=a:
  print("Yes")
if a==c and b!=c:
  print("Yes")
else:
  print("No")

Fixed code:
a,b,c = map(int,input().split())

if a == b and a != c:
    print('Yes')
elif a == c and a != b:
    print('Yes')
elif b == c and a != b:
    print('Yes')
else:
    print('No')
Buggy code:
A,B,C = map(int, input().split())

if (A==B==C or  A!=C and B!=C):
  print("No")

else:
  print("Yes")


Fixed code:
A,B,C = map(int, input().split())

if (A==B==C or  A!=C and A!=B and B!=C):
  print("No")

else:
  print("Yes")
Buggy code:
a,b,c=map(int,input().split())
if a==b or b==c or c==a:
  print("Yes")
else:
  print("No")


Fixed code:
a,b,c=map(int,input().split())

if a==b and b==c and c==a or a!=b and b!=c and c!=a:
    print("No")
else:
    print("Yes")