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):
In = list(map(int, input().split()))
d = {}
for i in In:
    if i not in d.keys():
        d[i] = 0
    d[i] += 1
print("Yes" if len(d) == 2 else "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()
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
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
abc = [int(i) for i in readline().split()]

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

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

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

Solution (Python):
from collections import defaultdict

n = list(map(int, input().split()))
memo = defaultdict(int)

for i in n:
    memo[i] += 1

print("Yes") if 2 in memo.values() else print("No")

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

d = 0
if a==b:
    d=d+1
if b==c:
    d=d+1
if c==a:
    d=d+1
if d==1:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
if __name__ == '__main__':
	a,b,c = map(int, input().split())
	l = [b,c]
	if a in l:
		if b == c:
			print('No')
		else:
			print('Yes')
	else:
		if b == c:
			print('Yes')
		else:
			print('No')

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

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

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

Solution (Python):
print("YNeos"[len(set(input()))!=3::2])

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

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

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

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

d = 0

if a == b:
    d = d + 1

if b == c:
    d = d + 1

if c == a:
    d = d + 1

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

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

Solution (Python):
X,Y,Z = input().split()
s = X
t = Y
u = Z
if (s==t and s==u):
    print("No")
elif (s==t or t==u or s==u):
    print("Yes")
elif (s!=t or t!=u):
    print("No")

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

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

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

print(solve())

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

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

if len(set([A,B,C]))==2:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=lambda x:int(math.floor(x)),lambda x:int(math.ceil(x))
from functools import reduce;gcd=lambda*x:reduce(math.gcd,x);lcm=lambda*x:reduce(lambda x,y:(x*y)//gcd(x,y),x,1)
from collections import deque
Yes=lambda b:print("Yes"if b else"No");YES=lambda b:print("YES"if b else"NO")
is_even=lambda x:True if x%2==0 else False

def is_palindrome(s):
  n=len(s);b=True
  for i in range(int(0.5*n)):
    if s[i]!=s[n-i-1]:b=False
  return b

def main():
  a,b,c=ints()
  Yes(a==b!=c or b==c!=a or c==a!=b)
  
if __name__ == '__main__':
    main()

Solution (Python):

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

if __name__ == "__main__":
    main()

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):
print('Yes') if len(set(input().split())) == 2 else print('No')

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

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

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

Solution (Python):
on= input()

on = on.split()
 
if (on[0] != on[1] and on[0] != on[2] and on[1] != on[2]):
    print("No")
elif (on[0] == on[1] and on[0] == on[2] and on[1] == on[2]):
    print("No")

else:
  print("Yes")

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

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

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

if lis[0]==lis[1] and lis[1]!=lis[2]:
  print ("Yes")
elif lis[0]!=lis[1] and lis[1]==lis[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, b, c = map(int, input().split())


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

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

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

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

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

print(ans)

Solution (Python):

"""
from sys import stdin
n = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]
print(data)
print(*data, sep='\n')
"""


"""
s =input()
s=list(input())
a=int(input())
x,y = map(int,input().split())	
li = input().split()	
li = list(map(int,input().split()))	
li = input().split('T')	
"""

li = input().split()

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

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

ans = "No"
for i in range(1, 10):
    if lis.count(i) == 2:
        ans = "Yes"
        break
        
print(ans)

Solution (Python):
A=[int(x) for x in input().rstrip().split()]
l=list(set(A))
if len(l)==2:
  print("Yes")
else:
  print("No")

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

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

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):
il = [int(k) for k in input().split()]

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

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

Solution (Python):
a,b,c = map(int,input().split())
ls=[a-b,b-c,c-a]
t = 0
for i in range(3):
    if ls[i] == 0:
        t += 1
if t ==1:
    print("Yes")
else:
    print("No")

Solution (Python):
s = list(map(int,input().split()))
n = list(set(s))
if len(n) == 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 or B ==C or A == C:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):

import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A = lr()
se = set(A)
bl = len(se) == 2
print('Yes' if bl else 'No')

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

def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))


def main():
    ABC= LI()
    ans = len(set(ABC))
    if ans == 2:
        print("Yes")
    else:
        print("No")




if __name__ == "__main__":
	main()

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

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):
print('Yes') if len(set(input().split()))==2 else print('No')

Solution (Python):

import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

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

Solution (Python):
a = [int(i) for i 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==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):
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):
L =list(map(int, input().split()))

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

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

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

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

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

Solution (Python):
a,b,c = map(str, 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())
s = {A, B, C}
if len(s) == 2:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
from collections import Counter

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

c = Counter(Poors)

if 1 in list(c.values()) and 2 in list(c.values()):
    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):
l = list(map(int,input().split()))
s = set(l)
if len(s) == 2:
  print('Yes')
else:
  print('No')

Solution (Python):
a,b,c = map(int,input().split())
abc = [a,b,c]
nabc = list(set(abc))
 
if len(abc)==len(nabc)or(len(nabc)==1):
  print('No')
else:
  print('Yes')

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

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

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

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

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

Solution (Python):
INT_MAX=10**11+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]


A=INPUT()
A.sort()

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

Solution (Python):

n,m,l = map(int,input().split())
ans = "No"
if n == m and n != l:
    ans = "Yes"
elif n == l and n != m:
    ans = "Yes"
elif l == m and m != n:
    ans=  "Yes"

print(ans)

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

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

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

Solution (Python):
set_nums = set(input().split())
print('Yes') if len(set_nums) == 2 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 b!=c:
  print("Yes")
elif c!=b and c==a:
  print("Yes")
elif 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())
ans = 'No'

if A == B and A != C:
    ans = 'Yes'
elif A == C and A != B:
    ans = 'Yes'
elif B == C and B != A:
    ans = 'Yes'

print(ans)

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

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

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

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

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



a, b, c = [int(s) for s in input().split(" ")]
solve()

Solution (Python):
def main():
    A, B, C = map(int, input().split())
    misery = False
    if A == B:
        if C != A:
            misery = True
    elif B == C:
        if A != B:
            misery = True
    elif C == A:
        if B != A:
            misery = True
    if misery :
        print("Yes")
    else:
        print("No")
if __name__ == "__main__":
    main()

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 and A!=C) or (A == C and A!=B) or (C == B and A!=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):
L = list(map(int,input().split()))

l = [0]*9
for i in L:
    l[i-1] += 1
if max(l) == 2:
    print('Yes')
else:
    print('No')

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

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

if a == b and a == 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 == C:
    print("No")
    exit()

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

Solution (Python):
import sys
l = len(set(map(int, sys.stdin.readline().split())))
if l == 2:
  print('Yes')
else:
  print('No')

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

Solution (Python):
ABC = set()

for x in input().split():
    ABC.add(x)

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

Solution (Python):
l = map(int, input().split())
s = set(l)
if len(s) == 2:
  print("Yes")
else:
  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 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:
    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())
l = [A, B, C]
ans = list(set(l))
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:
    if A != B:
        print('Yes')
    else:
        print('No')
elif B == C:
    if A != B:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
a,b,c=map(int,input().split());P=set();P.add(a);P.add(b);P.add(c);print('Yes' if len(P)==2 else 'No')

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

Solution (Python):
import collections
import sys
l = list(input().split())
if len(collections.Counter(l)) == 2:
    print('Yes')
    sys.exit()
print('No')

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

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

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

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

Solution (Python):
A = [int(i) for i 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((B!=C)or(A!=C)))or((A==C)and((B!=C)or(B!=A))))or((B==C)and((B!=A)or(C!=A))):
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

if len(a)==2:

    print("Yes")

else:print("No")

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

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

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

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

if A == B or B == C or C == A:
  Flag = False

if A == B == C:
  Flag = True

if Flag:
  print("No")
else:
  print("Yes")

Solution (Python):


def main():
    a, b, c = map(int, input().split())
    se = set([a, b, c])
    print("Yes" if len(se) == 2 else "No")
if __name__ == "__main__":
    main()

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

Solution (Python):
L = [int(x) for x in 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 a!=c)or (b==c and a!=b)or(c==a and c!=b):
    print("Yes")
else:
    print("No")

Solution (Python):
n=[int(i) for i in input().split()]
if n[0]==n[1]==n[2] or (n[0]!=n[1] and n[0]!=n[2] and n[1]!=n[2]):
    print("No")
else:
    print("Yes")

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

Solution (Python):
x = input().split()
count = 0
for i in x:
  for j in x:
    if i == j:
      count += 1
if count > 3 and count != 9:
  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 != a * 3):
    print('Yes')
  else:
    print('No')
else:
  print('No')

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

xflag = False
yflag = False
for i, j in ([a,b],[b,c],[c,a]):
    if i == j:
        xflag = True
    else:
        yflag = True

if xflag and yflag:
    print('Yes')
else:
    print('No')

Solution (Python):

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

Solution (Python):

url = "https://atcoder.jp//contests/abc155/tasks/abc155_a"

def main():
    t = list(map(int, input().split()))
    if t[0] == t[1] and t[0] != t[2]:
        print('Yes')
    elif t[1] == t[2] and t[0] != t[1]:
        print('Yes')
    elif t[0] == t[2] and t[0] != t[1]:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Solution (Python):

list_number = list(input().split())


if len(list_number) - len(set(list_number)) == 1:
    text = "Yes"
else:
    text = "No"


print(text)

Solution (Python):
a,b,c=map(int,input().split())
d=a-b
e=a-c
f=b-c
if d*e*f==0 and (a!=b or b!=c or c!=a):
    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())
ans = 0
if a == b: ans+=1
if b == c: ans+=1
if c == a: ans+=1

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

else:
    print("No")

Solution (Python):
A,B,C = (int(i) for i in 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=list(input().split())

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

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

Solution (Python):
a,b,c = (x for x 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):
A, B, C = map(int, input().split())

if (A == B and A != C) or (A == C and A != B) or (B == C and A != 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 = map(int, input().split())

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

Solution (Python):
from collections import deque, Counter as cnt
from collections import defaultdict as dd
from operator import itemgetter as ig
from bisect import bisect_right as bsr
from math import factorial, ceil, floor
import sys
sys.setrecursionlimit(1000000)


args = None
INF = float("inf")
MOD = int(1e9 + 7)


def input(*ps):
    if type(ps[0]) is list:
        return [input(*ps[0][:-1]) for _ in range(ps[0][-1])]
    elif len(ps) == 1:
        return ps[0](next(args))
    else:
        return [p(next(args)) for p in ps]


def nlist(n, v):
    if not n:
        return [] if type(v) is list else v
    return [nlist(n[1:], v) for _ in range(n[0])]


def yesno(v):
    print(["Yes", "No"][not v])


def main():
    """エントリーポイント"""
    A, B, C = input([int, 3])
    yesno(len({A, B, C}) == 2)


if __name__ == '__main__':
    args = iter(sys.stdin.read().split())
    main()

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

















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

Solution (Python):

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


AB = abs( A - B )
AC = abs( A - C )
BC = abs( B - C )

ans = False
if( AB == 0 and AC != 0 ):
    ans = True
elif( AC == 0 and AB != 0 ):    
    ans = True
elif( BC == 0 and AB != 0 ):    
    ans = True


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