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

Solution (Python):
def Main(A,B,C):

  if A == B:
    if C!=A:
      print("Yes",end="")
    else:
      print("No",end="")
  elif A == C:
    if B!=A:
      print("Yes",end="")
    else :
      print("No",end="")
  elif B == C:
    if A!=B :
      print("Yes",end="")
    else:
      print("No",end="")
  else:
    print("No",end="")
A,B,C = [int(num) for num in input().split(' ')]
Main(A,B,C)

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

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

Solution (Python):
def solve(a: int, b: int, c: int) -> bool:
   if a == b and b != c:
       return "Yes"
   if a == c and c != b:
       return "Yes"
   if b == c and c != a:
       return "Yes"
   return "No"             


def main():
    a, b, c = [int(num) for num in input().split(' ')]
    print(solve(a, b, c))


main()

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

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

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

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

Solution (Python):
def ii(): return int(input())
def si(): return input()
def mi(): return map(int,input().split())
def li(): return list(mi())

import math 

for i in range(1):
    a,b,c=mi()
    if a==b!=c or b==c!=a or c==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 a == c or 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):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    ans=[A,B,C]
    ans.sort()
    print(YES if max(ans.count(A),ans.count(B))==2 else NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    C = int(next(tokens))  
    solve(A, B, C)

if __name__ == '__main__':
    main()

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

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

Solution (Python):

a, b, c = map(int, input().split())
l = [a, b, c]
counter = 0
if a == b:
  counter += 1
if b == c:
  counter += 1
if a == c:
  counter += 1
if counter == 1:
  print("Yes")
else:
  print("No")

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

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

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

n=0

for i in range(0,2):
  if li[i+1] - li[i] ==0:
    n+=1
if li[2] - li[0] ==0:
  n+=1

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

Solution (Python):



from fractions import gcd 
from functools import reduce
import sys
sys.setrecursionlimit(200000000)
from inspect import currentframe




def printargs2err(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' : '+repr(arg) for arg in args),file=sys.stderr)
def debug(x):
    print(x,file=sys.stderr)
def printglobals():
    for (symbol, value) in globals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)
def printlocals():
    for (symbol, value) in locals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)



def pin(type=int):
    return map(type,input().split())

"""
愚直に操作を実装する
"""

A,B,C=pin()
if A==B and B==C:
    print("No")
elif A==B or B==C or C==A:
    print("Yes")
else:
    print("No")
    
"""
N,K=pin()
A=list(pin())
Aplus,Aminus=[],[]
zpm=[0]*3
for num in A:
    if num==0:
        zpm[0]+=1
    elif num>0:
        zpm[1]+=1
        Aplus.append(num)
    else:
        zpm[-1]+=1
        Aminus.append(num)

zeros=zpm[0]*(N-zpm[0])+zpm[0]*(zpm[0]-1)//2 
plus=(zpm[1]*(zpm[1]-1)+zpm[-1]*(zpm[-1]-1))//2
minus=zpm[1]*zpm[-1]

pz=[zeros,plus,minus]
print(pz)
print((N*(N-1)//2)-sum(pz)) 
"""

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

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

if len(sets) == 2:
  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 = map(int, input().split())


if A==B & B==C & C==A:
    print('No')

elif A!=B & B!=C & C!=A:
    print('No')

else:
    print('Yes')

Solution (Python):

case = input()

A, B, C =[int(x) for x in case.split(' ')]
if (A == B and A != C) or(B == C and A != C) or (A == C and A != B):
    print('Yes')
else:
    print('No')

Solution (Python):




def main():
    numbers_list = list(map(int, input().split(' ')))

    if (len(numbers_list) - len(set(numbers_list))) == 1:
        print('Yes')
    else:
        print('No')

    return 0


if __name__ == '__main__':
    main()

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

if x == y and x != z or x == z and x != y or y == z and y != x:
    print('Yes')
else:
    print('No')

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

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

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

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

if __name__ == '__main__':
    main()

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

if A == B:
    if A != C:
        count += 1

if B == C:
        if B != A:
            count += 1

if A == C:
        if A != B:
            count += 1

if count >= 1:
    print('Yes')
else:
    print('No')

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

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

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

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

Solution (Python):
l = list(map(int,input().split()))
count = 0
for i in range(-1,2):
  if l[i] == l[i+1]:
    count += 1
    
if count == 1:
  print( "Yes")
else:
  print( "No")

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

    if A == B and B == C:
        print('No')
        return

    if A == B or B == C or A == C:
        print('Yes')
        return

    print('No')
    

resolve()

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

Solution (Python):
n,m,l = map(int,input().split())
if (n != m) and (n != l ) and (m != l):
  print('No')
elif n == m:
  if n == l:
    print('No')
  else:
    print('Yes')
elif n == l:
  print('Yes')
elif m == l:
  print('Yes')

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

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

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

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

Solution (Python):
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007


def iii(a,b,c):
	if a==b and a!= c:
		return True
	if b==c and b!=a:
		return True
	if c==a and c!=b:
		return True
	return False
	
	
def main():
	a, b , c = IN()
	ret = 'Yes' if iii(a,b,c) else 'No'
	print(ret)
	
	

isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

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())
S = 'Yes'

if A == B and B == C :
	S = 'No'
if A != B and A != C and B != C :
	S = 'No'

print(S)

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

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

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

Solution (Python):
from sys import stdin




def ii(): return int(stdin.readline())


def fi(): return float(stdin.readline())


def mi(): return map(int, stdin.readline().split())


def fmi(): return map(float, stdin.readline().split())


def li(): return list(mi())


def lsi():
    x=list(stdin.readline())
    x.pop()
    return x


def si(): return stdin.readline()


def sieve(x):
    a=[True]*(x+1)
    sq=floor(sqrt(x))
    for i in range(3, sq+1, 2):
        if a[i]:
            for j in range(i*i, x+1, i):
                a[j]=False
    if x>1:
        p=[2]
    else:
        p=[]
    for i in range(3, x+1, 2):
        if a[i]:
            p.append(i)
    return p
def prime_factor(x):
    c=1
    i=0
    while p[i]*p[i]<=x:
        if not x%p[i]:
            c+=1
            while not x%p[i]:
                x//=p[i]
        i+=1
    if x>1:
        c+=1
    return c
res=['Yes', 'No']



a=[0]*12
b=li()
f=1
for i in b:
    a[i]=1
if sum(a)==2:
    f=0
print(res[f])

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

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

Solution (Python):
LIST = sorted(input().split(),reverse=True)

flag = 0
if LIST[0] == LIST[1]:
    flag += 1
if LIST[1] == LIST[2]:
    flag += 1

if flag == 1:
    print("Yes")
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 b == c or 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):
input_line = input().split(' ')
 
arr = set(input_line)
if(len(arr) == 2):
  print('Yes')
else:
  print('No')

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

ans="No"
if data[0]==data[1]:
    if data[1]==data[2]:
        ans="No"
    elif data[1]!=data[2]:
        ans='Yes'
elif data[0]!=data[1]:
    if data[1]==data[2]:
        ans="Yes"
print(ans)

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

Solution (Python):
arr = list(map(int, input().split()))
found = []
for n in arr:
  flag = True
  for f in found:
    if n == f:
      flag = False
  if flag:
    found.append(n)

print("Yes" if len(found) == 2 else "No")

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

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

Solution (Python):
from sys import stdin
A, B, C = map(int, stdin.readline().rstrip().split())
s = set([A,B,C])
if len(s)==2:
    print("Yes")
else:
    print("No")

Solution (Python):
n = list(map(int,input().split()))
a = 0
for i in (1,2):
    if n[0] == n[i]:
        a += 1
if a == 1:
    ans = "Yes"
elif a == 2 or n[1] != n[2]:
    ans = "No"
else:
    ans = "Yes"
print(ans)

Solution (Python):
import sys
 
for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
  
if ((A - B) * (B - C) * (C - A) == 0) and (int(A!=B) + int(B!=C) + int(C!=A)):
  print("Yes")
else:
  print("No")

Solution (Python):

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

Solution (Python):
import sys
 
for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
  
if ((A - B) * (B - C) * (C - A) == 0) and (int(A!=B) + int(B!=C) + int(C!=A)):
  print("Yes")
else:
  print("No")

Solution (Python):
a,b,c = input().split()
d = 0
if a == b:
    if a != c:
        d +=1
if a == c:
    if b != c:
        d +=1
if c == b:
    if a != c:
        d +=1
if d>0:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

li.sort()
poor = False

if li[0] == li[1]:
    if li[1] != li[2]:
        poor = True
elif li[1] == li[2]:
  poor = True

if poor:
  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 = [int(v) for v in 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 = 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):
num = [int(x) for x in input().split()]
if len(set(num))==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 a!=c and b!=c:
  print("Yes")
elif b==c and b!=a and c!=a:
  print("Yes")
elif a==c and a!=b and c!=b:
  print("Yes")
else:
  print("No")

Solution (Python):

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

ans = 'No'

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

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

Solution (Python):
import math
import numpy as np
a,b,c=(int(x) for x in input().split())
ans="No"
if a==b:
    if b!=c:
        ans="Yes"
if a!=b:
    if a==c:
        ans="Yes"
    elif b==c:
        ans="Yes"
print(ans)

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

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

Solution (Python):

INPUTS = list(map(str, input().split()))

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

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

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

Solution (Python):


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

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

a = inputs[0]
b = inputs[1]
c = inputs[2]
if(a == b and b == c and c == a):
    print("No")
    exit(0)

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

Solution (Python):
import sys
[A, B, C] = map(int, input().split())
if (A != B and A!=C and B!=C):
    print('No')
    sys.stdout.flush
elif (A==B and B==C):
    print('No')
    sys.stdout.flush       
else:
    print('Yes')
    sys.stdout.flush

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

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

Solution (Python):
l = 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):
def equ(a,b):
  return 1*(a==b)
a,b,c = map(int,input().split())
ans = equ(a,b)+equ(b,c) +equ(c,a)
print('Yes' if ans ==1 else 'No')

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

Solution (Python):
import sys

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


ab = a == b
ac = a == c
bc = b == c

if ab and bc:
  print('No')
  sys.exit()

if not ab and not ac and not bc:
  print('No')
  sys.exit()

print('Yes')

Solution (Python):


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

cnt = 0

if A == B:
    cnt += 1
if B == C:
    cnt += 1
if C == A:
    cnt += 1

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

Solution (Python):
line = input('')
A = line.split(' ')[0]
B = line.split(' ')[1]
C = line.split(' ')[2]

cnt_a = [A,B,C].count(A)
cnt_b = [A,B,C].count(B)
cnt_c = [A,B,C].count(C)

if cnt_a == 3:
  print("No")
elif cnt_a == 2 or cnt_b == 2 or cnt_c == 2:
  print("Yes")
else:
  print('No')

Solution (Python):


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

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

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

if a==b and b==c:
    print("No")
if a==b and b!=c:
    print("Yes")
if a!=b and b==c:
    print("Yes")
if a!=b and b!=c:
    if a==c:
        print("Yes")
    if a!=c:
        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())
samecount = 0
if a == b:
    samecount = samecount + 1
if a == c:
    samecount = samecount + 1
if b == c:
    samecount = samecount + 1

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

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

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

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

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

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

else:
    print("Yes")

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

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

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

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

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

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

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

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

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

Solution (Python):
a=input().split()
ans='No'
if a[0] == a[1] and not a[2] == a[0] :
	ans = 'Yes'
elif a[0] == a[2] and not a[1] == a[0] :
	ans = 'Yes'
elif a[2] == a[1] and not a[2] == a[0] :
	ans = 'Yes'
print(ans)

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    grp = {A, B, C}
    if len(grp) == 2:
        print(YES)
    else:
        print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    C = int(next(tokens))  
    solve(A, B, C)

if __name__ == '__main__':
    main()

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


line = input().split(" ")
if line[0] == line[1]:
    if line[0] == line[2]:
        print("No")
    else:
        print("Yes")
elif line[0] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
elif line[1] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Solution (Python):

data = [int(i) for i in input().split()]

t = 0
if data[0] == data[1]:
    t+=1
if data[0] == data[2]:
    t+=1
if data[1] == data[2]:
    t+=1

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

Solution (Python):



def kawaiso(A,B,C):
  YES_CODE = "Yes"
  NO_CODE = "No"

  if A == B and A != C:
      return YES_CODE 
  
  if A != B and A == C:
      return YES_CODE 
  
  if B == C and A != C:
      return YES_CODE 
  
  return NO_CODE 

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

Solution (Python):
a = list(map(int, input().split()))
a.sort()
count = 0
for i in range(len(a)-1):
  if a[i] == a[i+1]:
    count += 1
if count == 1:
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
def poor(arr):
    if len(set(arr)) == 2:
        return 'Yes'
    else:
        return 'No'

if __name__ == "__main__":
    arr = [int(s) for s in list(input().split())]
    print(poor(arr))

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):
a, b, c = (int(x) for x in input().split())
if a == b and b == c:
    print('No')
if a != b and b!= c and a != c:
    print('No')
if a == b and b != c:
    print('Yes')
if b == c and a != b:
    print('Yes')
if a == c and b != c:
    print('Yes')

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

else:
    print("No")

Solution (Python):


def main():
    question_a()

def question_a():
    abc = list(map(int,input().split()))
    flg = False
    if abc[0] == abc[1] or abc[0] == abc[2]:
        if abc[1] != abc[2]:
            print("Yes")
            flg = True
    elif abc[1] == abc[2]:
        if abc[0] != abc[1]:
            print("Yes")
            flg = True

    if flg == False:
        print("No")

main()

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

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

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

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

Solution (Python):
nums = [int(e) for e in input().split()]
if nums[0] == nums[1]:
    if nums[1]  == nums[2]:
        print("No")
    else:
        print("Yes")
else:
    if nums [1] == nums[2]:
        print("Yes")
    else:
        if nums[2] == nums[0]:
            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 = map(int, input().split())

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

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

count = 0

if a == b:
  count += 1
if b == c:
  count += 1
if a == c:
  count += 1

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

Solution (Python):
import sys
li = list(map(int,input().split()))
li.sort()
if(str(li[0]) == str(li[1]) == str(li[2])):
  print("No")
  sys.exit()
if(str(li[0]) != str(li[1]) != str(li[2])):
  print("No")
  sys.exit()
for i in range(3):
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break

Solution (Python):

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

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

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

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

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

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

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

Solution (Python):
import collections

mittsu = input()
mittsulist = mittsu.split()

kawaisou_ck = str(collections.Counter(mittsulist).values())
result = "No"
if kawaisou_ck == "dict_values([1, 2])" or kawaisou_ck == "dict_values([2, 1])":
  result = "Yes"
  
print(result)

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

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