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

print('Yes') if len(x)==2 else print('No')

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

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

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):
import collections
ls = list(map(int,input().split()))
counter = collections.Counter(ls)
ls2 = list(counter.values())
if 2 in ls2:
    print('Yes')
else:
    print('No')

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

Solution (Python):


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

D =[A,B,C]

D.sort()



if D.count(A)== 2:
    print("Yes")

elif D.count(A)== 1:
    if B == C:
        print("Yes")

    else:
        print("No")

elif D.count(A)== 3:
    print("No")

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

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

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

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

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

else:
    print("No")

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

Solution (Python):
import collections

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

c = collections.Counter(li)

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

Solution (Python):
import collections

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

c = collections.Counter(li)

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

Solution (Python):
print(["No","Yes"][len(set(input().split()))==2])

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

Solution (Python):
print(['No', 'Yes'][len(set(input().split())) == 2])

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

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

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

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

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 = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans)

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

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

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

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

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

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

Solution (Python):
a,b,c=map(int,input().split())
if a==b==c or (a!=b!=c and a!=c!=b):
    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):
l = list(map(int,input().split()))

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

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

Solution (Python):
x,y,z = map(int,input().split())
if x == y and x != z:
  print('Yes')
elif x == z and x != y:
  print('Yes')
elif y == z and x != y:
  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):

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 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):
from collections import Counter
c=Counter(list(map(int,input().split())))
if len(c)==2:print('Yes')
else:print('No')

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

Solution (Python):
A,B,C=map(int,input().split())
cnt=0
if A==B:
  cnt+=1
if A==C:
  cnt+=1
if B==C:
  cnt+=1
if cnt==1:
  print("Yes")
else:
  print("No")

Solution (Python):
num_l = set(map(int, input().split()))
print('Yes' if len(num_l) == 2 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):
a = [int(i) for i in input().split()]
if (a[0] == a[1] and a[0] != a[2]) or (a[0] == a[2] and a[0] != a[1]) or (a[2] == a[1] and a[2] != a[0]):
    print('Yes')
else:
    print('No')

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

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

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

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

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

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):
import collections
l = list(map(int,input().split()))
c = collections.Counter(l)
ans = 'No'

if len(c) == 2:
    ans = 'Yes'
print(ans)

Solution (Python):
import os, sys, re, math

(A, B, C) = [int(n) for n in 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):
s = input().split()
if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]):
  print("Yes")
else:
  print("No")

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

isPoor = False

if A == B and A != C :
    isPoor = True

if B == C and B != A :
    isPoor = True

if C == A and C != B :
    isPoor = True

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

Solution (Python):
import bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

from  collections import defaultdict
from collections import Counter
def main():
    ABC = LI()
    c = Counter(ABC)
    ans = len(c.values())

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

if __name__ == "__main__":
    main()

Solution (Python):
from collections import defaultdict

def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No')

if __name__ == '__main__':
    main()

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

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

Solution (Python):
dic = {}
for i in input().split():
  dic[i] = 0
if len(dic) == 2:
  print('Yes')
else:
  print('No')

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

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

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

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

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

if __name__ == "__main__":
    main()

Solution (Python):
from collections import defaultdict
d = defaultdict(int)

N,M,L = map(int,input().split())
d[N] += 1
d[M] += 1
d[L] += 1
print(("No","Yes")[len(d)==2])

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

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

Solution (Python):
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

A, B, C = rii()

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

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

Solution (Python):
lis = list(map(int, input().split()))
lis.sort()
if lis[0] == lis[1] and lis[1] != lis[2]:
    print('Yes')
elif lis[1] == lis[2] and lis[0] != lis[1]:
    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 A != C:
  print("No")
else:
  print("Yes")

Solution (Python):
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n = li()
N = []
N.append(n[0])

for i in range(1,3,1):
    if n[i] in N: continue
    N.append(n[i])

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

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

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

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

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = set(map(int, readline().split()))

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

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

Solution (Python):
from collections import Counter
a=list(map(int,input().split()))
dic=Counter(a)
for i in dic.values():
    if i==2:
        print("Yes")
        exit()
print("No")

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 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):
X = list(map(int,input().split()))
for i in [0,1]:
    if X.count(X[i]) == 2:
        print('Yes')
        exit()

print('No')

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


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
ns = list(map(int, input().split()))
x = 0
for i in ns:
	for j in range(3):
		if ns[j] == i:
			x += 1
o = 'Yes' if x == 5 else 'No'
print(o)

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

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

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

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

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

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

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

Solution (Python):
x=list((int(x) for x in input().split()))
if(len(set(x))==2):
    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):
def main():
    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')
        
if __name__ == '__main__':
    main()

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

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

Solution (Python):
l = sorted([int(v) for v in input().rstrip().split()])
r = 'No'
if (l[0] == l[1] and l[0] != l[2]) or (l[1] == l[2] and l[0] != l[1]):
	r = 'Yes'

print(r)

Solution (Python):
def main():

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

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

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

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

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

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

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

for i in range(10):
  if a.count(i) == 2:
    print('Yes')
    exit()
print('No')

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

a = A.count(A[0])
b = A.count(A[1])
c = A.count(A[2])

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

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

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

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

print(kotae)

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

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

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

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

Solution (Python):
from collections import Counter
abc = Counter(list(map(int, input().split()))).most_common()
if len(abc) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
n = list(map(int,input().split()))
if len(n) == len(set(n)):
    print("No")
    
elif len(set(n)) == 1:
    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 = list(map(int, input().split()))

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

Solution (Python):

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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


def main():
    solve()


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))
 
a, b, c = inm()
ans = False
if a == b and b != c:
    ans = True
if a == c and c != b:
    ans = True
if b == c and c != a:
    ans = True
print("Yes" if ans else "No")

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

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

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

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

Solution (Python):

ABC = input()
ABC = ABC.replace(" ", "")
if ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2:
  print("Yes")
else:
  print("No")

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

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

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

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

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return
main()

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

Solution (Python):
from sys import stdin 

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


if __name__ == "__main__":
    main()

Solution (Python):

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


if __name__ == "__main__":
    main()

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

if a == b:
  cnt += 1
if a == c:
  cnt += 1
if c == b:
  cnt += 1
  
if cnt == 1:
  print('Yes')
else:
  print('No')

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

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

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

l=set(a)

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

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

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

if '__main__' == __name__:
    resolve()

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

Solution (Python):
import sys
print('Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No')

Solution (Python):
S = input().split()
for i in range(-1, 2):
    if S[i-1] == S[i] and S[i] != S[i+1]:
        print("Yes")
        exit()
else:
    print("No")

Solution (Python):

num = set(map(int, input().split()))
ans = ['Yes', 'No'][len(num) != 2]
print(ans)

Solution (Python):
l=input("").split(" ")
a=int(l[0])
b=int(l[1])
c=int(l[2])
if(a==b and a==c):
    print("No")
elif((a-b)*(b-c)*(c-a)==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 B == C or C == A:
  print("Yes")
else:
  print("No")

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

Solution (Python):
x=list(map(int,input().split()))
t=0
for i in range(1,10):
    s=0
    s=x.count(i)
    t+=s
    if s==2:
        print("Yes")
        break
    if t==3:
        print("No")
        break

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

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

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

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

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

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

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

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

Solution (Python):
abc = set((map(int,input().split())))
print(['No','Yes'][len(abc)==2])

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

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