Problem:
 Score: 100 points    Problem Statement  A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.  You will be given three integers A , B , and C . If this triple is poor, print Yes ; otherwise, print No .      Constraints   A , B , and C are all integers between 1 and 9 (inclusive).         Input  Input is given from Standard Input in the following format:  A  B  C       Output  If the given triple is poor, print Yes ; otherwise, print No .        Sample Input 1 5 7 5      Sample Output 1 Yes  A and C are equal, but B is different from those two numbers, so this triple is poor.       Sample Input 2 4 4 4      Sample Output 2 No  A , B , and C are all equal, so this triple is not poor.       Sample Input 3 4 9 6      Sample Output 3 No       Sample Input 4 3 3 4      Sample Output 4 Yes

Solution (Python):
A,B,C=(int(x) for x in input().split())

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

Solution (Python):
def main():	
	a = list(map(int,input().split()))

	if len(set(a)) == 2:
		print("Yes")
	else:
		print("No")
	
 
if __name__ == '__main__':
	main()

Solution (Python):

A = list(map(int,input().split()))
A.sort()
if A[0] == A[1]:
    if A[1] != A[2]:
        print("Yes")
    else:
        print("No")
else:
    if A[1] == A[2]:
        print("Yes")
    else:
        print("No")

Solution (Python):
a, b, c = input().split()

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

Solution (Python):
def main():
  a = set(map(int, input().split()))
  if len(a) == 2:
    print('Yes')
  else:
    print('No')
  

if __name__ == '__main__':
  main()

Solution (Python):
l = list(map(int,input().split()))
l = set(l)
if len(l)==2:
    print('Yes')
else:
    print('No')

Solution (Python):
A,B,C = map(int, input().split())
ans = "Yes"
if A==B and B==C:
  ans = "No"
elif A != B and B != C and C != A:
  ans = "No"  
  
print(ans)

Solution (Python):
A,B,C = map(int,input().split())
if A == B and A != C:
  print("Yes")
elif B == C and A != B:
  print("Yes")
elif A == C and B != C:
  print("Yes")
else:
  print("No")

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

Solution (Python):
a = list(map(int, input().split()))
a.sort()
if a[0] == a[1] and a[1] != a[2]:
    print("Yes")
elif a[1] == a[2] and a[1] != a[0]:
    print("Yes")
else:
    print("No")

Solution (Python):
A,B,C = map(int,input().split())



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

Solution (Python):
s = input().split()
if len(list(set(s)))==2:
  print("Yes")
else:
  print("No")

Solution (Python):
a, b, c = list(map(int,input().split()))
flag = 0
if a == b:
    if a != c:
        flag = 1
if b == c:
    if b != a:
        flag = 1
if c == a:
    if c != b:
        flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys,collections,math,random,fractions,bisect;sys.setrecursionlimit(10**7)
sr = sys.stdin.readline; P = print; P2 = lambda x: print(*x, sep="\n")
def I(i=0): t = [int(x)-i for x in sr().split()];return t
def S(): t = sr().split(); return t if len(t) > 1 else t[0]
L1,L2,L3,L4, = [],[],[],[]
 
a,b,c = I()
s = set([a,b,c])
if len(s) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
a = list(map(int, input().split()))

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

Solution (Python):
A, B, C = map(int, input().split())

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

Solution (Python):
a,b,c = map(int,input().split())
ans = "No"

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

Solution (Python):
a, b ,c= map(int, input().split())
msg="No"
if (a==b) :
  if (b!=c) :
    msg="Yes"
else:
  if(b==c or a==c):
    msg="Yes"
print(msg)

Solution (Python):
A = [int(_) for _ in input().split()]

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

Solution (Python):
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!=C:
  print("Yes")
else:
  print("No")

Solution (Python):
abc = map(int, input().split())
s = set(abc)
if len(s) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
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")

Solution (Python):
A = map(int, input().split())
if len(set(A) ) == 2:
    print("Yes")
else:
    print("No")

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

Solution (Python):
a = list(map(int, input().split()))

a.sort()

if (a[0] == a[1] and a[1] != a[2]) or (a[1] == a[2] and a[0] != a[1]):
    print('Yes')

else:
    print('No')

Solution (Python):
l=list(map(int,input().split()))
l.sort()
if l[0]==l[1] and l[1]!=l[2]:
  print('Yes')
elif l[1]==l[2] and l[1]!=l[0]:
  print('Yes')
else:
  print('No')

Solution (Python):
A, B, C = list(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")

Solution (Python):
s = set(map(int,input().split()))
print("Yes") if len(s) == 2 else print("No")

Solution (Python):
x = list(map(int, input().split(' ')))
 
if len(set(x)) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
a,b,c = [int(x) for x in input().split()]

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

Solution (Python):


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

Solution (Python):
a,b,c = map(int,input().split(" "))

k_flag = False
if a==b:
    if a!=c:
        k_flag = True
    else:
        pass
else:
    if b==c or a==c:
        k_flag = True
    else:
        pass
if k_flag:
    print("Yes")
else:
    print("No")

Solution (Python):
A = map(int, input().split())
if len(set(A) ) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
[a,b,c] = [int(i) for i in input().split()]
if a == b and b != c:
    print("Yes")
elif b == c and b != a:
    print("Yes")
elif a == c and a != b:
    print("Yes")
else:
    print("No")

Solution (Python):
a = list(map(int,input().split()))

flag = 0
if a[0] == a[1] and a[1] == a[2] and a[0] == a[2]:
  flag = 1
elif a[0] != a[1] and a[1] != a[2] and a[0] != a[2]:
  flag = 1
  
if flag == 1:
  print("No")
else:
  print("Yes")

Solution (Python):
A, B, C = input().split()

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

Solution (Python):
A,B,C = input().split()
if A == B and B == C:
    print("No")
elif A != B and B != C and C != A:
    print("No")
else:
    print("Yes")

Solution (Python):
s = set(list(map(int, input().split())))
if len(s) == 1:
    print('No')
elif len(s) == 3:
    print('No')
else:
    print('Yes')

Solution (Python):
a, b, c = input().split()
set_in = {a, b, c}
if len(set_in) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):


if __name__ == "__main__":
    A, B, C = input().split()
    ls = set([A, B, C])

    if len(ls) != 2:
        ret  = "No"
    else:
        ret = "Yes"

    print(ret)

Solution (Python):
a,b,c = map(int,input().split())
y = [a,b,c]
ac = y.count(a)
bc = y.count(b)
cc = y.count(c)
if ac == 2 or bc == 2 or cc == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
A, B, C = input().split()

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

Solution (Python):
a = list(map(int,input().split()))
if len(set(a)) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
L = list(map(int,input().split()))
if len(set(L))==2:
    print("Yes")
else:
    print("No")

Solution (Python):
a,b,c=map(int,input().split())

tmp=set([a,b,c])
if len(tmp)==1:
  print('No')
elif len(tmp)==2:
  print('Yes')
else:
  print('No')

Solution (Python):
a,b,c=sorted(map(int,input().split()))
if a==b and b!=c:
    print('Yes')
elif b==c and a!=b:
    print('Yes')
else:
    print('No')

Solution (Python):
l = [int(x) for x in input().rstrip().split()]
d = {}
for x in l:
    if x in d.keys():
        d[x] += 1
    else:
        d[x] = 1
if 2 in d.values():
    print('Yes')
else:
    print('No')

Solution (Python):
a,b,c=map(int,input().split())
if a==b:
    if b==c:
        print("No")
    else:
        print("Yes")
else:
    if a==c:
        print("Yes")
    elif b==c:
        print("Yes")
    else:
        print("No")

Solution (Python):
A,B,C = map(int,input().split())
if A == B == C:
    print("No")
elif A == B or B == C or C == A:
    print("Yes")
else:
    print("No")

Solution (Python):
ele_l = input().split()
if(len(set(ele_l))==2):
    print("Yes")
else:
    print("No")

Solution (Python):
N = set(map(int, input().split()))
if len(N) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
A = input().split()
 
if (int(A[0]) == int(A[1])) and (int(A[1]) == int(A[2])):
  print("No")
elif (int(A[0]) != int(A[1])) and (int(A[1]) != int(A[2])) and(int(A[0]) != int(A[2])):
  print("No")
else:
  print("Yes")

Solution (Python):



A,B,C= input().split()



if A==B:
    if A==C:
        U='No'
    else:
        U='Yes'
else:
    if A==C:
        U='Yes'
    else:        
        if B==C:
            U='Yes'
        else:
            U='No'

print(U)

Solution (Python):
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")

Solution (Python):
nums = list(map(int,input().split()))
poor = False
for n in nums:
  if nums.count(n) == 2:
    poor = True
print("Yes" if poor else "No")

Solution (Python):

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


result = False

if not(A == B and A == C):
    if A == B or A == C or B == C:
        result = True


print("Yes" if result else "No")

Solution (Python):
A, B, C = sorted([i for i in input().split()])

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

Solution (Python):
if __name__ == "__main__":
    abc = [int(i) for i in input().split(" ")]
    abc.sort()
    if abc[0] == abc[1]:
        if abc[1] != abc[2]:
            print("Yes")
            exit(0)
    else:
        if abc[1] == abc[2]:
            print("Yes")
            exit(0)
    print("No")

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

Solution (Python):
a, b, c = list(map(int, input().split()))

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

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

Solution (Python):
abc = [int(x) for x in input().split()]
if len(list(set(abc))) != 2:
    print('No')
else:
    print('Yes')

Solution (Python):
A, B, C = input().split()
flag = 0

if A == B and A != C:
  flag = 1

if A == C and A != B:
  flag = 1
  
if B == C and B != A:
  flag = 1
  
if flag == 1:
  print("Yes")
elif flag == 0:
  print("No")

Solution (Python):
i = list(map(int, input().split()))
kawaisou=False
for j in i:
    if i.count(j)==2:
        kawaisou=True
if kawaisou:
    print('Yes')
else:
    print('No')

Solution (Python):
A,B,C = map(int,input().split())
if A == B:
    if A!= C:
        print("Yes")
    else:
        print("No")
elif B == C:
    if B != A:
        print("Yes")
    else:
        print("No")
elif C == A:
    if C !=B:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Solution (Python):

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

Solution (Python):
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")

Solution (Python):
poor = input().split()
A = int(poor[0])
B = int(poor[1])
C = int(poor[2])

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

Solution (Python):
A, B, C = input().split()
A = int(A)
B = int(B)
C = int(C)

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

Solution (Python):
A=set(map(int,input().split()))
if len(A)==2:
    print('Yes')
else:print('No')

Solution (Python):
def main():
    a,b,c=map(int,open(0).read().split())
    if a==b or b==c or c==a:
        if a==b and b==c and c==a:
            print("No")
            return
        print("Yes")
        return
    else:
        print("No")
        return
main()

Solution (Python):
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")

Solution (Python):

A, B, C = map(int, input().split())
ans = "No"

if A == B and C != A:
    ans = "Yes"
elif B == C and A != B:
    ans = "Yes"
elif C == A and B !=C:
    ans = "Yes"
    
print(ans)

Solution (Python):
abc = input().split(' ')

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

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

print(ans)

Solution (Python):
a,b,c = list(map(int, input().split()))
res = "No"

if(not a == b == c and (a == b or b == c or a == c)):
  res = "Yes"

print(res)

Solution (Python):
a = input().split()

s = set()
for i in a:
    s.add(i)

if len(s) == 1 or len(s) == 3:
    ans = "No"
else:
    ans = "Yes"

print(ans)

Solution (Python):
A,B,C = map(int,input().split())

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

Solution (Python):
all=input()
all=all.split()

setall = set(all)

if len(setall) == 2:
  print ("Yes")
else:
  print ("No")

Solution (Python):
A, B, C = input().split()

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

Solution (Python):
a, b, c = map(int, input().split())

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

Solution (Python):
a, b, c = map(int, input().split())
if a == b == c:
    print('No')
elif a == b != c:
    print('Yes')
elif a != b == c:
    print('Yes')
elif b != c == a:
    print('Yes')
else:
    print('No')

Solution (Python):
abc = list(map(int, input().split()))
if len(set(abc)) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
number = input().split(" ")
ans = set(number)
if len(ans) == 2:
	print("Yes")
else:
	print("No")

Solution (Python):
A, B, C = input().split()

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

Solution (Python):
temp_list = input().split()
temp_len = len(temp_list)

if temp_len - 1 == len(list(set(temp_list))):
    print("Yes")
else:
    print("No")

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

Solution (Python):
print("Yes") if len(set(map(int,input().split()))) == 2 else print("No")

Solution (Python):
A, B, C = list(map(int, input().split()))
 
l = [0] * 10
 
l[A] += 1
l[B] += 1
l[C] += 1
 
if max(l) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
a = [int(i) for i in input().split()]

a.sort()

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

Solution (Python):
A,B,C = input().split(' ')

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

Solution (Python):
A, B, C = map(int, input().split())
if A == B:
	if A != C:
		print("Yes")
	else:
		print("No")
else:
	if A == C:
		print("Yes")
	elif B == C:
		print("Yes")
	else:
		print("No")

Solution (Python):
A,B,C = list(map(int,input().split()))
if A==B and B!=C or A==C and B!=C or B==C and A!=C:
    print("Yes")
else:
    print("No")

Solution (Python):
a,b,c=map(int,input().split())

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

Solution (Python):



def main():

    seiji_numbers_list = list(map(int, input().split(' ')))
    
    if (len(seiji_numbers_list) - len(set(seiji_numbers_list))) == 1:
        print('Yes')
    else:
        print('No')

    return 0


if __name__ == '__main__':
    main()

Solution (Python):
n=list(map(int,input().split()))
if n[0]==n[1]==n[2]:
    print("No")
elif n[0]==n[1] or n[1]==n[2] or n[2]==n[0]:
    print("Yes")
else:
    print("No")

Solution (Python):
A,B,C=map(int,input().split())
if (A==B and (A!=C or B!=C)) or(B==C and (B!=A or C!=A))or A==C and(A!=B or C!=B):
    print("Yes")
else:
    print("No")

Solution (Python):
a = list(map(int, input().split()))
if len(set(a)) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
A, B, C = [int(i) for i in 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")

Solution (Python):
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')

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

Solution (Python):
A,B,C = map(int, 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')

Solution (Python):
A, B, C = map(int, input().split())
f1 = f2 = f3 = 0

if A == B:
    f1 = 1
if B == C:
    f2 = 1
if C == A:
    f3 = 1

if f1+f2+f3 == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
A,B,C = list(map(int,input().split()))
if (A == B or B == C or C == A) and (not A == B == C):
    print("Yes")
else:
    print("No")

Solution (Python):
A,B,C = map(int,input().split())


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

Solution (Python):
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")

Solution (Python):
a,b,c = map(int, input().split())
test = 0
if a==b and b!=c:
  print('Yes')
  test = 1
if a==c and b!=c:
  print('Yes')
  test = 1
if c==b and a!=c:
  print('Yes')
  test = 1
if test == 0:
  print('No')

Solution (Python):
A, B, C = map(int, input().split())

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

Solution (Python):
l= list(map(int, input().split()))
l = set(l)
if len(l) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
numbers = input().split(' ')
numbers_set = set(numbers)

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

Solution (Python):
A, B, C = map(int, input().split())

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

Solution (Python):
a, b, c = input().split()

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

Solution (Python):
import numpy as np

if __name__=="__main__":
    abc  = [int(x) for x in input().split()]
    if np.unique(abc).size == 2:
        print("Yes")
    else:
        print("No")

Solution (Python):
l = list(map(int,input().split()))
l.sort()
if (l[0] == l[1]) and (l[1] != l[2]):
  print("Yes")
  exit()
if (l[0] != l[1]) and (l[1] == l[2]):
  print("Yes")
  exit()
print("No")

Solution (Python):

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

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

Solution (Python):
def main():
    a,b,c=map(int,input().split())
    if a == b :
        if a!= c and b !=c:
            print('Yes')
        else:
            print('No')
    elif c == b :
        if a!= c and b !=a:
            print('Yes')
        else:
            print('No')
    elif c == a :
        if a!= b and b !=c:
            print('Yes')
        else:
            print('No')
    else:
        print('No')

if __name__=='__main__':
    main()

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

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

Solution (Python):
import sys
import numpy as np

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

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

Solution (Python):
S = [int(s) for s in input().split()]
S = set(S)
if len(S) == 2: print("Yes")
else: print("No")

Solution (Python):
A, B, C = input().split()
if A == B == C:
    print('No')
elif A != B and C != B and A != C:
    print('No')     
else:
    print('Yes')

Solution (Python):
A,B,C=input().split()

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

Solution (Python):
A, B, C = input().split()

s = { A, B, C }

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

Solution (Python):
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda x: [ns() for _ in range(x)]
nas = lambda: stdin.readline().split()

a = na()

cnt = 0
if a[0] == a[1]:
    cnt += 1
if a[1] == a[2]:
    cnt += 1
if a[2] == a[0]:
    cnt += 1

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

Solution (Python):
l = list(map(int,input().split())) 

if  len(set(l)) == 3 or len(set(l)) == 1:
    print('No')
else:
    print('Yes')

Solution (Python):
def calc(a, b, c):
    return len(set([a, b , c])) == 2

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

Solution (Python):
a = [int(s) for s in input().split()]

b = set(a)

ans = 'Yes' if len(b) == 2 else 'No'

print(ans)

Solution (Python):
A,B,C=map(int,input().split())

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

Solution (Python):
a, b, c = map(int, input().split()[:3])
print('No' if (a == b and b == c) or (a != b and b != c and a!= c) else 'Yes')

Solution (Python):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    A, B, C = iim()

    ans = (A == B) + (B == C) + (C == A)

    if ans == 3 or ans == 0:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    resolve()

Solution (Python):
a, b, c = map(int, input().split())

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

Solution (Python):
a,b,c = map(int,input().split())

s = []
s.append(a)
s.append(b)
s.append(c)
d = set(s)

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

Solution (Python):
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")

Solution (Python):
a, b, c  = input().split()
ans = 'No'
if (a==b and a!=c) or (a==c and a!=b) or (b==c and a!=b): ans = 'Yes'
print(ans)

Solution (Python):
A , B, C = map(int, input().split())
L = [A,B,C]
if len(set(L)) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
a = list(map(int, input().split()))
d = {}
for n in a:
    if n in d:
        d[n] += 1
    else:
        d[n] = 1

for v in d.values():
    if v == 2:
        print("Yes")
        exit()
print("No")

Solution (Python):
x, y, z = input().split()
if x == y != z or x == z != y or x != y == z:
    print('Yes')
else:
    print('No')

Solution (Python):



def main():
  a, b, c = map(int, input().strip().split())
  if a==b and a!=c:
    print('Yes')
    return
  if a==c and a!=b:
    print('Yes')
    return
  if c==b and a!=b:
    print('Yes')
    return
  print('No')

if __name__=='__main__':
  main()

Solution (Python):
a, b, c = map(int, input().split())
if (a == b and b == c and a == c) or not (a == b or b == c or a == c):
    print('No')
else:
    print('Yes')

Solution (Python):
a, b, c = map(int, input().split(' '))

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

Solution (Python):
A,B,C = map(int,input().split())

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

Solution (Python):
numbers = map(int, input().split())
print("Yes") if len(set(numbers)) == 2 else print("No")

Solution (Python):
numSet = set(input().split())
if len(numSet) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
print("Yes" if len(set(map(int, input().split()))) == 2 else "No")

Solution (Python):
a, b, c = [ int(i) for i in input().split(" ") ]


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

elif a == c and (a != b or c != b):
  print("Yes")

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

Solution (Python):
ABC = set(map(int,input().split()))
print('Yes' if len(ABC) == 2 else 'No')

Solution (Python):
A,B,C = list(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')

Solution (Python):
l = list(map(int, input().split()))


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

Solution (Python):
nums = set(input().split(" "))
if len(nums) == 1 or len(nums) == 3:
    print("No")
else:
    print("Yes")

Solution (Python):
a=sorted([int(x) for x in input().split()])
if a[0]==a[1] and a[1]!=a[2]:
    print("Yes")
elif a[0]!=a[1] and a[1]==a[2]:
    print("Yes")
else:
    print("No")

Solution (Python):
lis = list(map(int,input().split()))
if lis[0] == lis [1] and lis[0] != lis[2]:
    print("Yes")
elif lis[1] == lis[2] and lis[1] != lis[0]:
    print("Yes")
elif lis[0] == lis[2] and lis[2] != lis[1]:
    print("Yes")
else:
    print("No")

Solution (Python):
a=list(set(list(map(int,input().split()))))
if len(a) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
num = list(map(int,input().split(" ")))
nfind = False
for i in num:
    if(num.count(i)==2):
        print("Yes")
        nfind = True
        break

if not(nfind):
    print("No")

Solution (Python):
A,B,C = input().split()
if len({A,B,C}) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
from bisect import *
from collections import *
from fractions import gcd
from math import factorial
from itertools import *
from heapq import *
import copy



A=list(map(int,input().split()))
A=Counter(A)
if len(A)==2:
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
	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')
main()

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    l = len(set((A, B, C)))
    if l == 3 or l == 1:
        return NO
    return YES



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    C = int(next(tokens))  
    print(solve(A, B, C))

if __name__ == '__main__':
    main()

Solution (Python):
A = list(map(int, input().split()))
B = set(A)
if len(B) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
A, B, C = map(int, input().split())
if len(list(set([A, B, C]))) == 2:
    ans = 'Yes'
else :
    ans = 'No'
print(ans)

Solution (Python):
A,B,C = map(int,input().split())
if A == B or A == C or B == C:
  if A == B and B ==C:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Solution (Python):
a, b, c=map(int, input().split())
ans="Yes"
if a==b and b==c:
    ans="No"
if a!=b and b!=c and c!=a:
    ans="No"
print(ans)

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

Solution (Python):
a,b,c = sorted(map(int,input().split()))
if(b==c and a!=b) or (a==b and b!=c):
    print("Yes")
else:
    print("No")

Solution (Python):

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

Solution (Python):
a,b,c=map(int,input().split())
l=[]
l.append(a)
l.append(b)
l.append(c)
l.sort()

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

Solution (Python):
import math


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


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

Solution (Python):
a,b,c=map(int, input().split())

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

Solution (Python):
A_B_C = list(map(int,input().split()))
A = A_B_C[0]
B = A_B_C[1]
C = A_B_C[2]
ans = "No"
if A_B_C.count(A)==2:
    ans = "Yes"
elif A_B_C.count(B)==2:
    ans = "Yes"
print(ans)

Solution (Python):
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 c != a:
    print('Yes')
else:
    print('No')

Solution (Python):
a,b,c = input().split()

if a == b == c:
  print('No')
elif a != b and b != c and a != c:
  print('No')
elif 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')