Problem:
 Score: 100 points    Problem Statement  A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.  You will be given three integers A , B , and C . If this triple is poor, print Yes ; otherwise, print No .      Constraints   A , B , and C are all integers between 1 and 9 (inclusive).         Input  Input is given from Standard Input in the following format:  A  B  C       Output  If the given triple is poor, print Yes ; otherwise, print No .        Sample Input 1 5 7 5      Sample Output 1 Yes  A and C are equal, but B is different from those two numbers, so this triple is poor.       Sample Input 2 4 4 4      Sample Output 2 No  A , B , and C are all equal, so this triple is not poor.       Sample Input 3 4 9 6      Sample Output 3 No       Sample Input 4 3 3 4      Sample Output 4 Yes

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

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

Solution (Python):
A, B, C = map(int, input().split())
kawa = False
if A == B and C != A and C != B:
  kawa = True
if B == C and A != B and A != C:
  kawa = True
if A == C and B != A and B != C:
  kawa = True

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

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

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

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

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

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

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

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

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

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

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

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

    ans = "No"
    if a==b or b==c or c==a :ans ="Yes"
    if a==b and b==c : ans = "No"



    print(ans)

    return

if __name__ == "__main__":
    main()

Solution (Python):
a, b, c = map(int, input().strip().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):
num=[int(i) for i in input().split()]
if num[0]==num[1]==num[2]:
    print("No")
elif num[1]==num[2]:
    print("Yes")
elif num[0]==num[1]:
    print("Yes")
elif num[0]==num[2]:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
sys.setrecursionlimit(10**6)

def InMap(): return list(map(int, sys.stdin.readline().split(' ')))
def In(): return int(sys.stdin.readline())
def InS(): return sys.stdin.readline()

A, B, C = InMap()

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 = [int(a) for a in input().split(' ')]

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):

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

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

lis=[a,b,c]
lis.sort()

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

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

Solution (Python):
'''
.append(要素) リストに要素を追加 
.extend(リスト) リストを連結する
.insert(場所,要素) 指定した場所に要素追加
del 配列名[場所]
-1で末尾で末尾から一つ前

sort()
sorted(reverse=true)

配列の初期化
配列名=[a]*n+[b]*m

Decimal()
'''

from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy
import math
import itertools
from functools import reduce
from operator import mul


data = [int(s) for s in stdin.readline().rstrip().split()]
data.sort()
if data[0] == data[1] and data[0] == data[2]:
    print('No')
elif data[0] != data[1] and data[2] != data[1] and data[0] != data[2]:
    print('No')
else:
    print('Yes')

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


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):
a,b,c = list(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 = list(map(int, input().split()))
_ans = set(a)

if len(_ans)==2:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

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

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

Solution (Python):

def solve():
    if len(set(map(int, input().split()))) == 2:
        return 'Yes'
    else: 
        return 'No'
    
if __name__ == '__main__':
    print(solve())

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

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

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

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

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

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

Solution (Python):
import sys
from collections import defaultdict, Counter, deque
from itertools import accumulate, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right, bisect
from heapq import heappop, heappush
from fractions import gcd
from math import ceil, floor, sqrt, cos, sin, pi
from copy import deepcopy




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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

Solution (Python):
from sys import stdin

if __name__ == '__main__':
    A, B, C = [int(x) for x in stdin.readline().rstrip().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 = 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:
    print("Yes")
    exit()
if b == c and c != a:
    print("Yes")
    exit()
if c == a and a != b:
    print("Yes")
    exit()
print("No")

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

x = set([a, b, c])
if len(x) == 2:
    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 and a!=c) or (a==c and a!=b) or (c==b and c!=a):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

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

Solution (Python):


[a, b, c] = [int(x) for x in input().split()]

x = False
if a == b or b == c or c == a:
    x = True

y = False
if a != b or b != c or c != a:
    y = True

if x and y:
    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):
import sys
input=sys.stdin.readline
def main():
    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")
if __name__=="__main__":
    main()

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

Solution (Python):



from math import *
from copy import *
from string import *				
from random import *				
from sys import stdin
from sys import maxsize
from operator import *				
from itertools import *
from collections import Counter		
from collections import defaultdict 

'''

'''

def solve(l):
	n = len(l)
	

l = list(map(int, stdin.readline().rstrip().split()))
s = list(set(l))
ans = "Yes"
if(len(s) != 2):
	ans = 'No'
print(ans)

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().rstrip().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):
print('Yes') if len(set([int(i) for i in input().split()])) == 2 else print('No')

Solution (Python):
def main(abc):
    a = set(abc)
    return "Yes" if len(a) == 2 else "No"


abc = list(map(int, input().split()))
print(main(abc))

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

l = []

for cell in abc:
    if cell not in l:
        l.append(cell)

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

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

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

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

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

Solution (Python):
lst = [int(i) for i in input().split(" ")]

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

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

Solution (Python):
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30
from collections import Counter

def main():
    v = list(map(int, input().strip().split()))
    if len(Counter(v)) == 2:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

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

Solution (Python):
A=list(map(int,input().split()))
A.sort()
if A[0]==A[1] and A[1]!=A[2]:
  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 A!=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, b, c =  map(int,input().split())

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

Solution (Python):
a = sorted(list(map(int, input().split())))
diff = 0
for i in range(2):
    if a[i] != a[i+1]:
        diff += 1

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

Solution (Python):
abc = list(map(int, input().split()))
cnt1 = abc.count(abc[0])
cnt2 = abc.count(abc[1])
cnt3 = abc.count(abc[2])

if cnt1 == 2 or cnt2 == 2 or cnt3 == 2:
    print('Yes')
else:
    print('No')

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

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

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

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

Solution (Python):
N,D,A = map(int, input().split())
ans="No"
if (N==D):
    if (N != A):
        ans="Yes"
if (N==A):
    if (N != D):
        ans="Yes"
if (A==D):
    if (D != N):
        ans="Yes"
print(ans)

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

Solution (Python):
a,b, c = map(int,input().split())
if a==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())
k = 0
if A == B and A != C:
  k = 1
if A == C and A != B:
  k = 1
if B == C and A != B:
  k = 1
if k == 1:
  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):
n = list(map(int, input().split()))

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

Solution (Python):
Ns = input().split()
a = int(Ns[0])
b = int(Ns[1])
c = int(Ns[2])
kawaiso = False
if a == b and a != c:
  kawaiso = True
elif a == c and a != b:
  kawaiso = True
elif b == c and b != a:
  kawaiso = True
  
if kawaiso:
  print('Yes')
else:
  print('No')

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

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

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

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):
l = list(input().split())

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

Solution (Python):
li = set(map(int,input().split()))
if len(li)==3:
    print("No")
elif len(li)==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 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 b!=a:
    print("Yes")
else:
    print("No")

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

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

B=set(A)

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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


main()

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
from operator import mul
from functools import reduce
import pprint
sys.setrecursionlimit(10 ** 9)


INF = 10 ** 13
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007


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

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

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

Solution (Python):





def solv(A, B, C):
    if (A == B and A != C) or (B == C and B != A) or (C == A and C != B):
        return "Yes"
    return "No"


if __name__ == "__main__":

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

    print(ans)

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

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

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

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

flag = False

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

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

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

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

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

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

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

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

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

setted = set(ls)

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

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

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

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

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

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

Solution (Python):
from collections import Counter


def main():
    A, B, C = map(int, input().split())
    cnt = Counter([A, B, C])
    if set(cnt.values()) == {1, 2}:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

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

Solution (Python):
if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    b = []
    same = 0

    for i in a:
        if i in b:
            same = same +1
        else:
            b.append(i)
    if same ==1:
        print("Yes")
    else:
        print("No")

Solution (Python):

def solution():
    a, b, c = [x for x in input().strip().split(" ")]
    if (a == b and b == c) or (a != b and a !=c and b != c):
        print("No")
    else:
        print("Yes")

def main():    
    
    for _ in range(1):
        solution()
    

main()

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

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

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


b ="No" ;
if L[0] == L[1] and L[1] == L[2] :
	pass ; 
elif L[0] == L[1] or L[1] == L[2] :
	b ="Yes" ;
print ( b ) ;

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

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

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

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

for i in nList:
  if nList.count(i) == 3:
    print("No")
    exit(0)
  elif nList.count(i) == 2:
    print("Yes")
    exit(0)

print("No")

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

Solution (Python):
from heapq import heappush, heappop, heapify
from collections import deque, defaultdict, Counter
import itertools
from itertools import permutations, combinations, accumulate
import sys
import bisect
import string
import math
import time


def I(): return int(input())


def S(): return input()


def MI(): return map(int, input().split())


def MS(): return map(str, input().split())


def LI(): return [int(i) for i in input().split()]


def LI_(): return [int(i)-1 for i in input().split()]


def StoI(): return [ord(i)-97 for i in input()]


def ItoS(nn): return chr(nn+97)


def input(): return sys.stdin.readline().rstrip()


def show(*inp, end='\n'):
    if show_flg:
        print(*inp, end=end)


YN = {False: 'No', True: 'Yes'}
MOD = 10**9+7
inf = float('inf')
IINF = 10**10
l_alp = string.ascii_lowercase
u_alp = string.ascii_uppercase
ts = time.time()
sys.setrecursionlimit(10**6)
nums = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']

show_flg = False



def main():
    A, B, C = MI()
    m = {}
    m[A] = 0
    m[B] = 0
    m[C] = 0
    m[A] += 1
    m[B] += 1
    m[C] += 1

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


if __name__ == '__main__':
    main()

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

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

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

if a == b and 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):
import math
import numpy as np
from fractions import gcd
import fractions
import statistics
import collections
from functools import reduce
import itertools
from collections import defaultdict
import bisect
from fractions import Fraction
 

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


if (A.count(A[0]) ==2 or A.count(A[1]) ==2):
        print('Yes')
else:
        print('No')

Solution (Python):
a, b, c = 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())

n=set([a,b,c])

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

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

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

Solution (Python):
from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float("inf")


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


if __name__ == '__main__':
    main()

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


import sys
import math
import itertools

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

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

if __name__ == '__main__':
    main()

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

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

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

L = set(l)

if len(L) == 1 or len(L) == 3:
    print("No")
else:
    print("Yes")

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

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

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

Solution (Python):
import numpy as np

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

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