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

Solution (Python):
def poor(a,b,c):
  if a==b and b==c and c==a:
    return False
  if a!=b and b!=c and c!=a:
    return False
  return True

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

if poor(a,b,c):
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
a,b,c= [int(x) for x in input().split()]
if (a==b and b!=c) or (a==c and c!=b) or (b==c and a!=c):
	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[2]==A[1] and A[1]!=A[0]):
  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=list(map(int,input().split()))
B=len(set(A))
if B==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):
nums = list(map(int, input().split(" ")))
if len(set(nums)) == 2:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
if len(set(input().split()))==2: 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,b,c=map(int,input().split())
count=0
if(a==b):
  count+=1
if(b==c):
  count+=1
if(c==a):
  count+=1
      
if(count==1):
  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 or b==c:
        print("Yes")
    else:
        print("No")

Solution (Python):
data=[int(x) for x in input().split()]
if data.count(data[0])==2 or data.count(data[1])==2:
  print("Yes")
else:
  print("No")

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

Solution (Python):
a,b,c = map(int, input().split())
s = {a,b,c}
if len(s) == 2:
    ans = 'Yes'
else:
    ans = 'No'
    
print(ans)

Solution (Python):
def poor(A,B,C):
  if (A==B and A!=C) or (B==C and A!=B) or (A==C and A!=B):
    print('Yes')
  else:
    print('No')
a = input()

a=a.split()

b=[]
for i in  a:
  b.append(int(i))


poor(b[0],b[1],b[2])

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

Solution (Python):
ls = list(input().split(' '))
if ls[0] == ls[1] == ls[2] or (ls[0] != ls[1] and ls[1] != ls[2] and ls[2] != ls[0]):
  print('No')
else:
  print('Yes')

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)*(b-c)*(c-a)==0:
    if a==b and b==c:
        print('No')
    else:
        print('Yes')
else:
    print('No')

Solution (Python):
l = input().split()
l = [int(i) for i in l]
m = sorted(l)
A, B, C = [m[i] for i in range(3)]
if A == B != C or A != B == C:
  print("Yes")
else:
  print("No")

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

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



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

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

Solution (Python):
str = input()
ipt = list(map(lambda x: int(x), str.split()))
ipt.sort()
if ipt[0]==ipt[1] and ipt[1]==ipt[2]:
  print('No')
elif ipt[0]==ipt[1] or ipt[1]==ipt[2]:
  print('Yes')
else:
  print('No')

Solution (Python):

import sys

def solve():
    A, B, C = map(int, sys.stdin.readline().split())
    if ((A==B and A!=C and B!=C) or
        (B==C and B!=A and C!=A) or
        (C==A and C!=B and A!=B)):
        print("Yes")
        return
    print("No")

if __name__ == "__main__":
    solve()

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

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

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

Solution (Python):
dic={}
x=[int(a) for a in input().split()]
for i in x:
  dic[i]=dic.get(i, 0)+1
m=list(dic.values())
if max(m)==2: print("Yes")
else: print("No")

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

Solution (Python):
x,y,z = map(int, input().split())

if (x == y and y != z) or (x==z and y !=z) or (x !=y and y==z):
  print("Yes")
else:
  print("No")

Solution (Python):
def solve(a, b, c):
    if (a == b and a != c) or (b == c and a != c) or (c == a and a != b):
        print('Yes')
    else:
        print('No')



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

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

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

Solution (Python):
if len(set([int(x) for x in input().split(' ')])) == 2:
  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 b!=a):
    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):
nums = map(int, input().split())

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

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

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

print(ans)

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

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

Solution (Python):
str = input()
num = [int(str[0]), int(str[2]), int(str[4])]

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

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

Solution (Python):
import sys

ns = lambda: sys.stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: [int(x) for x in ns().split()]
nall = lambda: [int(x) for x in sys.stdin.readlines()]

def main():
    xs = na()
    if len(set(xs)) == 2:
        print('Yes')
    else:
        print('No')

main()

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

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

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

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

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

if len({a, b, c}) == 2:
    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 = input().split()
if A == B == C:
    print('No')
elif A == B:
    if A != C:
        print('Yes')
elif A == C:
    if A != B:
        print('Yes')
elif B == C:
    if B != A:
        print('Yes')

else:
    print('No')

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

Solution (Python):




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

Solution (Python):

import numpy as np

A,B,C = raw_input().split()
if((A==B and A!=C) or (A==C and A!=B )or (A!=B and B==C)):
    print ("Yes")
else:
    print("No")

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

tmp=sorted(num)

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

Solution (Python):
import sys
 
line = [l for l in sys.stdin][0]
digits = line.split(' ')
num = [int(s) for s in digits]
 
res = 'No'
if num[0] == num[1]:
  if num[0] != num[2]:
    res = 'Yes'
    
if num[1] == num[2]:
  if num[1] != num[0]:
    res = 'Yes'

if num[2] == num[0]:
  if num[2] != num[1]:
    res = 'Yes'
    
print(res)

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

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

if a[0] == a[1]:
  if a[0] != a[2]:
   	ans = "Yes"
else:
  if a[0] == a[2] or a[1] == a[2]:
    ans = "Yes"
    
print(ans)

Solution (Python):
N = set(input().split())

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

Solution (Python):
s = [int(x) for x in list(input().split())]
ans = "No"
for i in range(3):
  tmp = [x/s[i] == 1 for x in s]
  is_poor = 0
  for j in tmp:
    is_poor += j
  if is_poor == 2:
    ans = "Yes"
    pass
print(ans)

Solution (Python):
s = [int(x) for x in list(input().split())]
ans = "No"
for i in range(3):
  tmp = [x/s[i] == 1 for x in s]
  is_poor = 0
  for j in tmp:
    is_poor += j
  if is_poor == 2:
    ans = "Yes"
    pass
print(ans)

Solution (Python):
n = [int(x) for x in input().split()]
ans = "No"

if n[0]==n[1]:
  if n[0]!=n[2]:
    ans="Yes"
else:
  if n[0]==n[2]:
    ans="Yes"
  elif n[1]==n[2]:
    ans="Yes"


print(ans)

Solution (Python):
ret = 'Yes'

a, b, c = map(int, input().split())
if a == b and b == c:
    ret = 'No'
elif a != b and b != c and c != a:
    ret = 'No'

print(ret)

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):
a, b, c = input().split()
x = set([a, b, c])
if len(x) == 2:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
def poor():
    N=list(map(int,input().split()))
    n=0
    for i in range(len(N)):
        for j in range(i+1,len(N)):
            if N[i]==N[j]:
                n+=1
    if n==1:
        print('Yes')
    else:
        print('No')
poor()

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

if (array[0] == array[1]) & (array[1] == array[2]) & (array[2] == array[0]):
    print('No')

elif (array[0] != array[1]) & (array[1] != array[2]) & (array[2] != array[0]):
    print('No')

else:
    print('Yes')

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

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

List = [A,B,C]
hoge = set(List)

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

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

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

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

j1 = int(a[0]==a[1])
j2 = int(a[1]==a[2])
j3 = int(a[2]==a[0])

if (j1 * j2 * j3) != 0 or (1-j1)*(1-j2)*(1-j3) !=0 :
  print('No')
else:
  print('Yes')

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

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

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

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

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

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

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

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

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

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

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

v.sort()

if ((v[0] == v[1] and v[0] != v[2]) or (v[0] != v[1] and v[1] == v[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):
a=input().split(" ")
a1,a2,a3=int(a[0]),int(a[1]),int(a[2])
ans="No"
if a1!=a2 and (a1==a3 or a2==a3):
  ans="Yes"
if a1!=a3 and (a1==a2 or a2==a3):
  ans="Yes"
if a2!=a3 and (a1==a2 or a1==a3):
  ans="Yes"
  
print(ans)

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

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

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

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

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

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

Solution (Python):
a,b,c=sorted(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")
else:
	print("No")

Solution (Python):

def main():
    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")
    return 0

if __name__ == '__main__':
    main()

Solution (Python):
x = list(map(int,input().split()))
x = set(x)
if len(x)==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 b != a:
    print("Yes")
elif c == a and c != b:
    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):
p = list(map(int,input().split()))

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

Solution (Python):
num=list(map(int,input().split()))
nums=set()
for n in num:
  nums.add(n)
if len(nums)==2:
  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 B != A) or (C == A and C != 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):
a, b, c = map(int, input().split())

if len(set([a, b, c])) == 2:
    ans = "Yes"
else:
    ans = "No"
print(ans)

Solution (Python):
a,b,c=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):
inp = input().split()
a = inp[0]
b = inp[1]
c = inp[2]
judge = 0
if a==b:
    judge += 1
if b==c:
    judge += 1
if c==a:
    judge += 1
if judge == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
from sys import stdin
ABC = [int(_) for _ in stdin.readline().rstrip().split()]
if len(set(ABC)) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):

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

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

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

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

Solution (Python):
from sys import stdin
a,b,c = map(int,stdin.readline().rstrip().split())
if a == b and b != c:
    print("Yes")
elif a == c and b != c:
    print("Yes")
elif b == c and a != c:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
mod2 = 998244353
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    a = LI()
    c = collections.Counter(a)
    if len(c) == 2:
        return "Yes"

    return "No"


print(main())

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

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

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

Solution (Python):
a, b, c = input().split()
s = set([a, b, c])
if len(s) == 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 b != c:
    print('Yes')
elif a == c and a != b:
    print('Yes')
elif a != b and b == c:
    print('Yes')
else:
    print('No')

Solution (Python):
list = input().split()
 
for i in range(0, len(list)):
	list[i] = int(list[i])
    
a = list[0]
b = list[1]
c = list[2]
 
if a == b:
  if a != c:
    print("Yes")
  else:
    print("No")
elif b == c:
  if a != b:
    print("Yes")
  else:
    print("No")
elif a == c:
  if a != b:
    print("Yes")
  else:
    print("No")
    
elif a != b:
  if a != c:
    print("No")

Solution (Python):
a = {int(i) for i in input().split()}
if len(a) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):
hoge = input().split()
 
aaa = 0  
if hoge[0] == hoge[1]:
  aaa += 1
if hoge[0] == hoge[2]:
  aaa += 1
if hoge[1] == hoge[2]:
  aaa += 1    
 
if (aaa == 1) or (aaa == 2):
  print("Yes")
else:
  print("No")

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

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

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

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

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

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

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

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

if __name__ == "__main__":
    main()

Solution (Python):
a,b,c=[x for x in input().split(" ")]
ok=0
if a==b and b!=c:
    ok=1
elif b==c and a!=b:
    ok=1
elif c==a and c!=b:
    ok=1

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

Solution (Python):
numbers =input().rstrip().split(" ")

a =numbers[0]
b =numbers[1]
c =numbers[2]
if (a==b and b!=c) or (b==c and a!=b) or (a==c and a!=b):
    print("Yes")
else:
    print("No")

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


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

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


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

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

Solution (Python):

'''
story_is_true = False
bills = [0, 0, 0]

N = int(input())
Y = int(input())

if story_is_true:
    print('10000円札{0}枚，5000円札{1}枚，1000円札{2}枚'.format(bills[0],bills[1],bills[2]))
'''

A = set(int(e) for e in input().split())
if len(A) == 2:
    print('Yes')
else:
    print('No')

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    s = set([A, B ,C])
    if len(s) == 2:
        
        return(YES)
    else:
        
        return(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))  
    ans = solve(A, B, C)
    if ans is not None:
        print(ans)

if __name__ == '__main__':
    main()

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    s = set([A, B ,C])
    if len(s) == 2:
        
        return(YES)
    else:
        
        return(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))  
    ans = solve(A, B, C)
    if ans is not None:
        print(ans)

if __name__ == '__main__':
    main()

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    s = set([A, B ,C])
    if len(s) == 2:
        
        return(YES)
    else:
        
        return(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))  
    ans = solve(A, B, C)
    if ans is not None:
        print(ans)

if __name__ == '__main__':
    main()

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

if a == b == c:
    print("No")
    exit(0)

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

print("No")

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

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

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

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

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

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

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

Solution (Python):
x, y, z = map(int, input().split())
s = {x, y, z}
length = len(s)
if length == 2:
  print("Yes")
else:
  print("No")

Solution (Python):


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

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

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

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

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

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

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

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

main()

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

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    if len(set([A, B, C]))==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):
d = raw_input()
a, b, c =  d.split()
a = int(a)
b = int(b)
c = int(c)
if (a==b):
  if c == a:
    print("No")
  else:
    print("Yes")
else:
  if 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) or ((b==c) and b!=a) or ((a==c) and a!=b):
    print('Yes')
else:
    print('No')

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

Solution (Python):



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