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

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

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

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

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

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

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

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

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

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

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

count = 0
if A == B:
    count += 1
if B == C:
    count += 1
if count == 1:
    print('Yes')
else:
    if A == C and count == 0:
        print('Yes')
    else:
        print('No')

Solution (Python):
import sys
A, B, C = list(map(str, input().split()))

if A == B and A != C and B != C:
    print("Yes")
elif B == C and B != A and C != A:
    print("Yes")
elif C == A and C != B 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 = list(map(int,input().split()))
A.sort()

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

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

if i[0] == i[1] and i[0] != i[2] and i[1] != i[2]:
	print('Yes')
elif i[0] != i[1] and i[0] == i[2] and i[1] != i[2]:
	print('Yes')
elif i[0] != i[1] and i[0] != i[2] and i[1] == i[2]:
	print('Yes')
elif i[0] != i[1] and i[0] != i[2] and i[1] != i[2]:
	print('No')
elif i[0] == i[1]  == i[2]:
	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):
s = input().split()
s.sort()
if s[0]==s[1] and s[1]!=s[2]:
    print("Yes")
elif s[1]==s[2] and s[0]!=s[1]:
    print("Yes")
else:
    print("No")

Solution (Python):
import collections
A = [i for i in input().split()]
A = collections.Counter(A)

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

Solution (Python):
import collections
a = input().split()
c = list(collections.Counter(a).values())
b = 0
for k in c:
  b += 1
  if k == 2:
    print("Yes")
    break
  elif b == 3:
    print("No")
  elif k == 3:
    print("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):
import sys


TEST_INPUT = [
    """
    5 7 5
    """,
    """
    4 4 4
    """,
    """
    4 9 6
    """,
    """
    3 3 4
    """
]
ANSWER = [
    "Yes",
    "No",
    "No",
    "Yes"
]


class InputHandler:

    def __init__(self, text_lines="", is_test=False):
        self.data = list(text_lines.split("\n"))
        self.index = 0
        self.is_test = is_test

    def input(self):
        if self.is_test:
            self.index += 1
            return self.data[self.index].strip()
        else:
            return sys.stdin.readline().rstrip()


def solve(a, b, c):
    if len({a, b, c}) == 2:
        return "Yes"
    else:
        return "No"


def input_and_solve(ih):
    a, b, c = map(int, ih.input().split())
    res = solve(a, b, c)
    return res


def main():
    ih = InputHandler()
    res = input_and_solve(ih)
    print(res)


def test():
    for test_input, ans in zip(TEST_INPUT, ANSWER):
        ih = InputHandler(test_input, True)
        res = input_and_solve(ih)
        assert str(res) == str(ans)


if __name__ == "__main__":
    test()
    main()

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

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

Solution (Python):


import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (a, b, c) = [int(e) for e in lines[0].split(' ')]

    return (a, b, c)


def solve(a, b, c):
    
    result = 'No'
    if a == b and a != c:
        result = 'Yes'
    if b == c and b != a:
        result = 'Yes'
    if c == a and c != b:
        result = 'Yes'
        
    return result
    


def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

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

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

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):
class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        tmp = sorted([A, B, C])

        if tmp[0] == tmp[1] and tmp[1] != tmp[2]:
            return "Yes"

        if tmp[0] != tmp[1] and tmp[1] == tmp[2]:
            return "Yes"

        return "No"


if __name__ == '__main__':

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

    
    solution = Solution()
    print(solution.solve(A, B, C))

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

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

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

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

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

Solution (Python):
print('No' if len(set(input().split())) in [1,3] else 'Yes')

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

ls = [a,b,c]
set = set(ls)
if len(ls) == len(set) or len(set) == 1:
	print("No")
else:
  	print("Yes")

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

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

Solution (Python):
import collections
k=collections.Counter(list(map(int,input().split())))
if len(k) == 3 or len(k) == 1:
  print('No')
else:
  print('Yes')

Solution (Python):

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

if len(set({a,b,c})) == 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 C == A:
    cnt += 1
    
if cnt == 0 or cnt == 3:
    print('No')

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

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

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

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

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

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

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

a = set([A, B, C])

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

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

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

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

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

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

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

a.sort()
if a[0] == a[2] or a[0] < a[1] < a[2]:
  print('No')
else:
  print('Yes')

Solution (Python):
input_first = input().split()
input_first_int = [int(i) for  i in input_first]

check_lst =[]

sorted_lst = sorted(input_first_int)


flag = 0
cnt  =0
for i in range(2):
    if sorted_lst[i] == sorted_lst[i+1]:
        cnt +=1

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

    print('No')

Solution (Python):
l = list(map(int, input().split()))
A = l[0]
B = l[1]
C = l[2]

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

Solution (Python):
a = [int(i) for i in input().split()]
num = list(set(a))

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

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

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

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

A = L[0]
B = L[1]
C = L[2]

if L.count(A) == 1 and L.count(B) == 1 and L.count(C) == 1:
  	print("No")
elif L.count(A) == 2 or L.count(B) == 2 or L.count(C) == 2:
  	print("Yes")
else:
  	print("No")

Solution (Python):
input_line = input().split(' ')

num=set(input_line)

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

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

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

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

ans = 0
tmp = 0
if a == b == c :
    ans = "No"
elif a == b:
    ans = "Yes"
elif a == c:
    ans = "Yes"
elif b == c:
    ans = "Yes"
else:
    ans = "No"
print(ans)

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

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

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

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

a = int(a)
b = int(b)
c = int(c)

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

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

if(int(len(set(c)) == 3)):
    print("No")
elif(int(len(set(c)) == 2)):
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

Solution (Python):


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

ab = A==B
ac = A==C
bc = B==C
if ab + ac + bc == 1:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
a,b,c = map(int,input().split())
x = abs(a-b-c)
if((a==b&b==c)|(a!=b&b!=c&c!=a)):
    print("No")
else:
    print("Yes")

Solution (Python):
A = [int(i) for i in input().split()]
d = {}
for a in A:
    if a in d:
        d[a] += 1
    else:
        d[a] = 1
ans = "No"
for v in d.values():
    if v == 2:
        ans = "Yes"
        break
print(ans)

Solution (Python):
a, b, c = [0] * 3

def format_input(filename = None):
	global a, b, c
	if filename == None:
		a, b, c = list(map(int, input().split()))

	elif filename == '__random__':
		from random import randint as rng
		a = rng(1, 9)
		b = rng(1, 9)
		c = rng(1, 9)

def get_answer():
	poorness = 'No'
	if len(set([a, b, c])) == 2:
		poorness = 'Yes'
	return poorness

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	print(ans)

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

ls = [a,b,c]
set = set(ls)
if len(ls) == len(set) or len(set) == 1:
	print("No")
else:
  	print("Yes")

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

d=[""]*3
d[0]=a
d[1]=b
d[2]=c

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

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

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

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

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

print(output)

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

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

Solution (Python):
nums = [int(x) for x in input().split()]

bool1 = nums[0] == nums[1]
bool2 = nums[0] == nums[2]
bool3 = nums[1] == nums[2]

bool_list = [bool1, bool2, bool3]

if bool_list.count(True) == 0 or bool_list.count(True) == 3:
  print("No")
else:
  print("Yes")

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

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

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

print("Yes" if poorFlag else "No")

Solution (Python):
import numpy as np

A = [int(x) for x in input().split()]
A = np.array(A)
t = 0

if A[0] == A[1]:
  t += 1
else:
  pass

if A[0] == A[2]:
  t += 1
else:
  pass

if A[1] == A[2]:
  t += 1
else:
  pass

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

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

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

Solution (Python):
from sys import stdin

a, b, c = [int(x) for x in stdin.readline().rstrip().split()]

flag = True
if a == b:
    if a == c:
        flag = False
    else:
        flag = True
elif a == c:
    flag = True
elif b == c:
    flag = True
else:
    flag = False

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

Solution (Python):
import sys

input = sys.stdin.readline

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

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

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

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

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

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

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

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

Solution (Python):


stdin = open(0)
A, B, C = map(int, stdin.read().split())


def check(A, B, C):
    for _ in range(3):
        A, B, C = B, C, A
        if A == B != C:
            return True
    return False


answer = 'Yes' if check(A, B, C) else 'No'
print(answer)

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

l_unique = len(set(l))

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

Solution (Python):

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

ans = ''

if a == b and a != c :
 ans = 'Yes'
elif a == c and a != b :
 ans = 'Yes'
elif b == c and a != b :
 ans = 'Yes'
else:
 ans = 'No'

print(ans)

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

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

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

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

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

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

Solution (Python):
number = input().split()
newNumber = set(number)
if(len(newNumber) + 1 == len(number)):
  print("Yes")
else:
  print("No")

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

Solution (Python):
A,B,C = input().split()
lis = [A,B,C]
for i in lis:
  if lis.count(i)==2:
    print("Yes")
    exit()
print("No")

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

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

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

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

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

Solution (Python):
A = input()
arr1 = [i for i in A.split(' ')]
if(arr1[0]==arr1[1]==arr1[2]):
	print('No')
elif((arr1[0]!=arr1[1]) and (arr1[0]!=arr1[2]) and (arr1[1]!=arr1[2])):
	print('No')
else:
	print('Yes')

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
A,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):
def inpl():
    return list(map(int, input().split()))


A = inpl()
A.sort()
print("Yes" if A[0] != A[2] and (A[0] == A[1] or A[1] == A[2]) else "No")

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

Solution (Python):
def calculate():
    S = input().split(" ")
    A = S.count(S[0])
    if A == 2:
        print("Yes")
        return

    B = S.count(S[1])

    if B == 2:
        print("Yes")
        return

    C = S.count(S[2])

    if C == 2:
        print("Yes")

    print("No")

calculate()

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

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

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

def solve(A, B, C):
    na = sorted([A, B, C])
    is_poor = False
    if na[0] == na[1] and na[1] < na[2]:
        is_poor = True
    elif na[0] < na[1] and na[1] == na[2]:
        is_poor = True
    return 'Yes' if is_poor else 'No'


if __name__ == '__main__':
    inputs = read()
    print("{}".format(solve(*inputs)))

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

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

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


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

if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

ans = "No"

if li[0] == li[1] and li[1] != li[2] :
  ans = "Yes"

elif li[0] != li[1] and li[1] == li[1] == li[2]:
  ans = "Yes"

print(ans)

Solution (Python):

a, b, c = input().strip().split()
a, b, c = [int(a), int(b), int(c)]

ans = 0

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

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

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

Solution (Python):
def main():
    num = list(map(int,input().split()))
    if num.count(num[0]) == 2 or num.count(num[1]) == 2:
        print('Yes')
        return

    print('No')


main()

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

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

Solution (Python):
userinput = input()
inputlist = userinput.split(" ")
inputset = set(inputlist)
num = 0
for i in inputlist:
  num = num + int(i)
if num <= 27:
  if len(inputset) == 2:
    print("Yes")
  else:
    print("No")
else:
  print("")

Solution (Python):

import sys
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_matrix(H):
    '''
    H is number of rows
    '''
    return [list(map(int, read().split())) for _ in range(H)]


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols

    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])

    return ret


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