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 = map(int,input().split())

check = 0

if a == b and a != c :
  check = 1
if b == c and a != c :
  check = 1
if c == a and a != b :
  check = 1

if check == 1 :
  print('Yes')
else :
  print('No')

Solution (Python):
s = set(map(int, input().split()))

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

Solution (Python):
def main():

    A,B,C=map(int, input().split())
    s = set([A,B, C])
    if len(s) == 2:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main())

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

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

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

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

Solution (Python):


n = list(map(int,input().split()))
cnt = 0
for i in range(3):
    for j in range(i+1,3):
        if n[i] == n[j]:
            cnt = cnt + 1
            
if cnt == 1:
    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==A or B==C or C==A:
    print('Yes')
else:
    print('No')

Solution (Python):
a, b, c = map(int, input().split())
 
count = 0
if a==b:
  count+=1
if a==c:
  count+=1
if b==c:
  count+=1

if count==1:
  print('Yes')
else:
  print('No')

Solution (Python):
nums = set(map(int, input().split()))

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

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

data = list(set(data))

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

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

Solution (Python):

s = set(input().split())
print('Yes' if len(s)==2 else 'No')

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

Solution (Python):
A, B, C = [int(x) for x in input().split()]
print('No' if A == B and B == C or A != B and A != C and B != C else 'Yes')

Solution (Python):
a, b, c = map(int, input().split())
ans = 0
if a == b:
    ans += 1
if c == b:
    ans += 1
if a == c:
    ans += 1

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

Solution (Python):
x = len(set(input().split()))

if x == 2:
  print("Yes")
else:
  print("No")

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

Solution (Python):
A,B,C = list(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 = set(int(i) for i in input().split())
if len(A) == 2:
    print('Yes')
else:
    print('No')

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

if len(abc) == 2:
    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):
A,B,C = map(int,input().split())
 
if A == B and A != C :
	answer = "Yes"
elif A == C and A != B :
	answer = "Yes"
    
elif B == C and B != A :
	answer = "Yes"
else:
	answer = "No"
 
print(answer)

Solution (Python):
from sys import stdin

A, B, C = stdin.readline().rstrip().split()

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

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

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

print('No')

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

Solution (Python):
number_1,number_2,number_3= map(int,input().split())
if number_1 == number_2 and  number_1 != number_3 :
      print ('Yes') 
elif  number_1 == number_3 and  number_1!= number_2 :
      print ('Yes')
elif  number_1 !=  number_2 and  number_2== number_3 :
      print ('Yes')
else :
    print ("No")

Solution (Python):
x=input()
y=x.split()

if y[0] == y[1] :
    if y[0] == y[2]:
        print("No")
    else:
        print("Yes")
elif y[0] == y[2] :
    print("Yes")
elif y[2] == y[1] :
        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 c != a:
        print("Yes")
elif c == a and a != b:
        print("Yes")
else:
    print("No")

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

Solution (Python):
import os

def main():
	num = list(map(int, input().split()))	
	if num[0] == num[1] or num[0] == num[2]:
		if num[1] == num[2]:
			print("No")
		else:
			print("Yes")
	else:
		if num[1] == num[2]:
			print("Yes")
		else:
			print("No")

if __name__ == "__main__":
	main()

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

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

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

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

lis = set({a,b,c})
if(len(lis)==2):
    print('Yes')
else:
    print('No')

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

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

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

if A==B and B==C or 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 A!=C) or (A!=B and A==C) or (A!=B and B==C):
  print('Yes')
else:
  print('No')

Solution (Python):

l = set(input().split())
if len(l) == 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=input()
b=a[2]
c=a[4]
a=a[0]
if(a==b and a == c):
  print("No")
elif(a != b and b == c):
  print("Yes")
elif(a != b and a == c):
  print("Yes")
elif(a!=c and a == b):
  print("Yes")
else:
  print("No")

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

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

print(ans)

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

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

flag = False

if a[0] == a[1] and a[0] != a[2]:
    flag = True

if a[0] == a[2] and a[0] != a[1]:
    flag = True

if a[1] == a[2] and a[1] != a[0]:
    flag = True

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

Solution (Python):
A = input()
if A[0] != A[2] == A[4] or A[2] != A[4] == A[0] or A[4] != A[0] == A[2]:
    print('Yes')
else:
    print('No')

Solution (Python):
a, b, c = map(int, input().split())
flg = False
if a == b:
    if a != c:
        flg = True
elif a == c:
    if a != b:
        flg = True
elif b == c:
    if a != b:
        flg = True

if flg == False:
    print("No")
else:
    print("Yes")

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

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

Solution (Python):
s = input().split()
a = int(s[0])
b = int(s[1])
c = int(s[2])

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

print("No")

Solution (Python):
b=input()
(n,m,l)=b.split(" ")
l=[n,m,l]
l1=set(l)
if len(l1)==2:
    print("Yes")
else:
    print("No")

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

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 B!=A):
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
a,b,c = (int(x) for x in input().split())
if (a == b and a == c) or (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 != c or b == c != a or c == a != b:
    print('Yes')
else:
    print('No')

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

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

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):
print("Yes") if len(set(list(map(int,input().split()))))==2 else print("No")

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

A=str(A);B=str(B);C=str(C);
if A == B:
  if A == 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())
print("Yes" if (A == B and B != C) or (A == C and C != B) or (B == C and C != A) else "No")

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

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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

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

A = int(m[0])
B = int(m[1])
C = int(m[2])

if A == B:
  if A == C:
    ans = 'No'
  else:
    ans = 'Yes'
else:
  if A == C:
    ans = 'Yes'
  elif B == C:
    ans = 'Yes'
  else:
    ans = 'No'

print(ans)

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

A = int(m[0])
B = int(m[1])
C = int(m[2])

if A == B:
  if A == C:
    ans = 'No'
  else:
    ans = 'Yes'
else:
  if A == C:
    ans = 'Yes'
  elif B == C:
    ans = 'Yes'
  else:
    ans = 'No'

print(ans)

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

set = {a,b,c}
if len(set) == 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, B, C = map(int, input().split())

if (A == B) & (A != C):
    ans = 'Yes'
elif (B == C) & (B != A):
    ans = 'Yes'
elif (C == A) & (C != B):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

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

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

if A==B:
    if B==C:
        print("No")
    else:
        print("Yes")
elif B==C:
    print("Yes")
elif A==C:
    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):
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')

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

Solution (Python):
A, B, C = [int(_) for _ in input().split()]
if A == B and B != C:
    print("Yes")
elif B == C and C != A:
    print("Yes")
elif C == A and A != B:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
def resolve():
    import sys

    input = sys.stdin.readline

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

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


resolve()

Solution (Python):
A, B, C = map(int, input().split())
if A == B == C:
  print('No')
elif 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 or b == c or c == a:
    if a != b or b != c or c != a:
        flug = True
    else:
        flug = False
else:
    flug = False
if flug:
    print("Yes")
else:
    print("No")

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

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

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

if a == b and b != c:
    print("Yes")
elif a == b and b == c:
    print("No")
elif a != b and b == c:
    print("Yes")
elif a != b and a == c:
    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 B == C:
        print('Yes')
    elif A == 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 a == c:
    print('Yes')
else:
    print('No')

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

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 = map(int, input().split())

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

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

flg = False
for item in items:
  if items.count(item) == 2:
    print('Yes')
    flg = True
    break
if not flg:
  print('No')

Solution (Python):
a=list(map(int,input().split()))
for i in range(3):
  if a[i]==a[(i +1)%3]!=a[(i+2)%3]:
    print('Yes')
    exit()
print('No')

Solution (Python):
import sys
input = sys.stdin.readline

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=list(map(int,input().split()))
if(a==b==c or (a!=b and a!=c and b!=c)):
  print('No')
else:
  print('Yes')

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

Solution (Python):
from collections import Counter
abc = list(map(int, input().split()))
ans = Counter(abc)
if len(ans) == 2:
    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:
  print("Yes")
elif b==c:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
inputStr = input()
inputList = inputStr.split(" ")

a = inputList[0]
b = inputList[1]
c = inputList[2]

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

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

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

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

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

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

Solution (Python):
def judge(A,B,C):
    return (A == B and A != C) or (B == C and B != A) or (C == A and C != B)

S = input()
ABC = S.strip().split(' ')
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])
if judge(A,B,C):
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
ABC = S.strip().split(' ')
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])
if (A == B and A != C) or (B == C and B != A) or (C == A and C != B):
    print('Yes')
else:
    print('No')

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    s = set()
    s.add(A)
    s.add(B)
    s.add(C)
    if len(s) == 2:
        print(YES)
    else:
        print(NO)



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))  
    solve(A, B, C)

if __name__ == '__main__':
    main()

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

else :
    print("No")

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

def solver(a, b, c):
    if a == b and b == c:
        return 'No'
    elif a != b and b != c and c != a:
        return 'No'
    else:
        return 'Yes'

print(solver(a, b, c))

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

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

if len(set(li))==2:
  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 c != a:
  print('Yes')
elif c == a and a != b:
  print('Yes')
else:
  print('No')

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

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

Solution (Python):






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



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

print(ans)

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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = set(map(int, input().split()))
if len(s) in [1, 3]:
  print("No")
else:
  print("Yes")

Solution (Python):

a,b,c = list(map(int,input().split()))
ret = "No"
if len(set([a,b,c]))==2:
    ret = "Yes"
print(ret)

Solution (Python):
a,b,c=input().split()
print("Yes" if (a==b or b==c or a==c) and not a==b==c else "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):
import sys
arr = list(map(int, input().split()))
a,b,c=arr

if(a==b):
	if(a==c):
		print("No")
		sys.exit()
	else:
		print("Yes")
		sys.exit()
if(b==c):
	if(a==b):
		print("No")
		sys.exit()
	else:
		print("Yes")
		sys.exit()
if(a==c):
	if(a==b):
		print("No")
		sys.exit()
	else:
		print("Yes")
		sys.exit()
else:
	print("No")
	sys.exit()

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 len(set(list(map(int, input().split())))) == 2:
    print("Yes")
else:
    print("No")

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

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

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

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

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

Solution (Python):
a,b,c = map(int,input().split())
k = [a, b, c]
if(len(set(k))==2):
    print("Yes")
else:
    print("No")

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

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

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):
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')

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

if A[0] == A[1] != A[2]:
    print("Yes")
    exit()

if A[1] == A[2] != A[0]:
    print("Yes")
    exit()

if A[2] == A[0] != A[1]:
    print("Yes")
    exit()

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

Solution (Python):
A,B,C=map(int,input().split())
if A==B!=C or A==C!=B or B==C!=A:
    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:
  if b == c:
    print("No")
  else:
    print("Yes")
else:
  if b == c:
    print("Yes")
  elif a == c:
    print("Yes")
  else:
    print("No")

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

a = abc[0]
b = abc[1]
c = abc[2]

if abc.count(a) == 2 or abc.count(b) == 2 or abc.count(c) == 2:
	print('Yes')
else:
	print('No')

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

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

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

Solution (Python):
li = list(map(int,input().split()))
a=list(set(li))
if len(a)==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 == C:
    print('No')
  else:
    print('Yes')
else:
  print('No')

Solution (Python):

A = list(map(int, input().split()))

set_A = set(A)
if len(A) == 3 and len(set_A) == 2:
    print("Yes")
    exit()
print("No")

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

Solution (Python):
def listint():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

a,b,c = listint()
poor = False
if a == b:
    if a != c:
        poor = True
if a == c:
    if a != b:
        poor = True
if b == c:
    if a != b:
        poor = True
if poor == True:
    print('Yes')
else:
    print('No')

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

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

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

if A == B != C:
  print('Yes')
elif A != B == C:
  print('Yes')
elif A == C != B:
  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):
X = list(map(int, input().split()))
print('Yes' if len(set(X)) == 2 else 'No')

Solution (Python):



a, b, c = map(int, open(0).read().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):
A,B,C = list(map(int,input().split(" ")))
if(A == B and C != B):
    print("Yes")
elif(C == B and A != C):
    print("Yes")
elif(C == A and B != A):
    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 = list(map(int, input().split(" ")))

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

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

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

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):
a = list(map(int, input().split()))
a.sort()
if (a[0] == a[1] and a[1] != a[2]) or (a[0]!=a[1] and a[1]==a[2]) :
  print('Yes')
else:
  print('No')

Solution (Python):
L = input().split()
if len(set(L))==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:
   print ("Yes")
elif a==c:
   print ("Yes")
elif b==c:
   print ("Yes")
else:
   print ("No")

Solution (Python):
x, y, z = input().split()
a = "No"
if x != y:
    if x == z:
        a = "Yes"
    elif y == z:
        a = "Yes"
    else:
        a = "No"
if x == y:
    if x == z:
        a = "No"
    elif y == z:
        a = "No"
    else:
        a = "Yes"
print(a)

Solution (Python):
x, y, z = input().split()
if x == y:
  if x == z and y == z:
    print("No")
  else:
    print("Yes")
elif x == z:
  if x == y and y == z:
    print("No")
  else:
    print("Yes")
elif y == z:
  if x == y and x == z:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Solution (Python):
v = list(map(int,input().split()))
flag = True
flag = flag and max(v) != min(v)
for i in v:
  if max(v) != i and min(v) != i: flag = False
print("Yes" if flag else "No")

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

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

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

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

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

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

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

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

Solution (Python):
a = len(set([int(i) for i in input().split()]))
if a == 2:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
def main():
    a,b,c = map(str, input().split())

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


if __name__ == '__main__':
    main()

Solution (Python):
def solve():
    A = list(map(int, input().split()))
    a, b, c = A
    if a == b == c: return 'No'
    return 'Yes' if (a == b or b == c or c == a) else 'No'

print(solve())

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

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

Solution (Python):
from itertools import combinations as comb


def main():
    a, b, c = map(int, input().split())
    li = comb([a, b, c], 2)
    Count = 0
    for l in li:
        if l[0] == l[1]:
            Count += 1

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


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
import sys
from fractions import gcd
from itertools import groupby as gb
from itertools import permutations as perm
from itertools import combinations as comb
from collections import Counter as C
from collections import defaultdict as dd
sys.setrecursionlimit(10**5)
def y(f):
    if f:
        print('Yes')
    else:
        print('No')
def Y(f):
    if f:
        print('YES')
    else:
        print('NO')
def Z(f):
    if f:
        print('Yay!')
    else:
        print(':(')
def ispow(n):
    if int(n**.5)**2==n:
        return True
    return False

s = set(list(map(int,input().split())))
y(len(s) == 2)