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

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

cnt = 0
if a == b:
    cnt += 1
if b == c:
    cnt += 1
if a == c:
    cnt += 1

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

Solution (Python):
a=list(map(int,input().split()))
if max(a)!=min(a) and (sum(a)-max(a)-min(a)==max(a) or sum(a)-max(a)-min(a)==min(a)):
  print("Yes")
else:
  print("No")

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

if A == B and B == C:
    ans = "No"
else:
    pass
print(ans)

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

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

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

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

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

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

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

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

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

print('Yes' if len({A, B, C}) == 2 else 'No')

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

Solution (Python):
A,B,C=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):
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):
ABC=list(map(str,input().split()))
abc=set(ABC)
print('Yes' if len(abc)==2 else 'No')

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

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


if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
a, b, c = list(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):
a, b, c = map(int, input().split())
if [a, b, c].count(a) == 2 or [a, b, c].count(b) == 2 or [a, b, c].count(c) == 2:
    print('Yes')
else:
    print('No')

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

main()

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

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

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

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

Solution (Python):


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

flag = False
if a == b and b == c:
    flag = True

if a is not b and b is not c and c is not a:
    flag = True

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

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

s = {a, b, c}

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

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

x = sorted([a, b, c])

yes = (
    (x[0] == x[1] and x[0] != x[2])
    or (x[0] == x[2] and x[0] != x[1])
    or (x[1] == x[2] and x[0] != x[1])
)

if yes:
    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):
def resolve():
    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")
resolve()

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

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

list = [A,B,C]

a = set(list)

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

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

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

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

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())
x=set([A,B,C])
if len(x)==2:print("Yes")
else:print("No")

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

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

Solution (Python):
import sys
def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
l = ILI()
a = "No"
for s in l:
	if l.count(s) == 2: a="Yes"
print(a)

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

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

ans = False

if a == b and a != c:
    ans = True
if b == c and b != a:
    ans = True
if c == a and c != b:
    ans = True

print('Yes' if ans else '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):
L= list(map(int,input().split()))
S=len(set(L))
if S==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==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())
lst = []
lst.append(A)
lst.append(B)
lst.append(C)
if len(set(lst)) == 2:
    print('Yes')
else:
    print('No')

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

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

print(poor)

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

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

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

set_abc = len(set(abc))

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

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

Solution (Python):
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

a = sorted(nl())

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

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

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

Solution (Python):
a, b, c = map(int, input().split())
l = set([a, b, c])
if len(l) == 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')
elif B == C:
    print('Yes')
elif A == C:
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

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

Solution (Python):
if len(list(set(input().split())))==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())
result='No'
if a==b or a==c or b==c:
    if a==b and b==c:
        result='No'
    else:
        result='Yes'
        
print(result)

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

num_list.sort()

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

Solution (Python):
L = list(map(int, input().split()))
a = L[0]
b = L[1]
c = L[2]
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 and b==c) or (a != b and b != c and a != c) :
  print("No")
else :
  print("Yes")

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


def f(a, b, c):
    x = sorted([a, b, c])
    if (x[0] == x[1] and x[1] != x[2]) or (x[0] != x[1] and x[1] == x[2]):
        print('Yes')
    else:
        print('No')

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

Solution (Python):
import collections
elems = map(int, raw_input().split(' '))

def f(elems):
	elems.sort()
	
	return (elems[0] == elems[1] and elems[1] != elems[2]) or (elems[1] == elems[2] and elems[0] != elems[1])


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

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

Solution (Python):
print("YNeos"[len(set(map(int, input().split()))) != 2::2])

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

Solution (Python):
from sys import stdin 
input = stdin.readline
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 or a == c or b ==c) and not (a == b and a == c):
    print("Yes")
else:print("No")

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

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

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

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

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

Solution (Python):
input =input().split();
a,b,c =map(int,input)
input=set(input)
leng=(len(input))

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

Solution (Python):
S = input()
print('YNeos'[(S[0] != S[2] and S[0] != S[4] and S[2] != S[4]) or (S[0] == S[2] and S[2] == S[4])::2])

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


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


if __name__ == '__main__':
    main()

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
A, B, C =(int(x) for x in input().split())
if (A == B and B!=C and A!= C) or (A!=B and A==C and B!=C) or (A !=B and B==C and C !=A):
  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):
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

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

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

Solution (Python):
import fileinput

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

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

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

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

if __name__ == '__main__':

    ABC_155_A()

Solution (Python):
x=set( map(int,input().split()) )
if len(x)==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):
a,b,c=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())

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

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

Solution (Python):
import itertools
import math
import fractions
import functools
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=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 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:
  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())
print("Yes" if (A == B and B != C) or (
    B == C and C != A) or (C == A and A != B) else "No")

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

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

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

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

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

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

Solution (Python):
X,Y,Z = map(int,input().split())

if X == Y == Z:
    print("No")
elif X != Y and X != Z and Y != Z:
    print("No")
else:
    print("Yes")

Solution (Python):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

def LI(): return list(map(int, stdin.readline().split()))
def LS(): return list(stdin.readline())

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

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

n = len(set(a))

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

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

Solution (Python):
from sys import stdin, setrecursionlimit


def main():
    a, b, c = map(int, stdin.readline().split())
    print('Yes') if 3 - len(set([a, b, c])) == 1 else print('No')


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

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

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

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

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

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

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

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

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

buff = set(ls)

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

Solution (Python):

"""
Created on Thu May  7 22:09:30 2020

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

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

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

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

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

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

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

Solution (Python):
A=[0]*3
A[0],A[1],A[2]=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):
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):
from sys import stdin, setrecursionlimit


def main():
    a, b, c = map(int, stdin.readline().split())

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


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

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

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


if __name__ == '__main__':
    solve()

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

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

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

Solution (Python):

ABC = list(input().split())

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

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

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

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

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

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

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

if a == b and a == c and b == c or a != b and a != c and b != c:
    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):
lst=list(map(str,input().split()))
a=set()
for i in range(3):
  a.add(lst[i])
if len(a)==2:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):


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

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

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

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
import sys
def I(): return int(input())  
def Is(): return map(int, input().split())  
def LI(): return list(map(int, input().split()))  
def TI(): return tuple(map(int, input().split()))  
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  
def LS(): return list(input())  
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

a, b, c = Is()
if len({a, b, c}) == 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 B==C):
  print('No')
else:
  print('Yes')