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

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

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

Solution (Python):
import math

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

Solution (Python):
B = set(list(input().split()))

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

Solution (Python):









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

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

    print("No")
if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

Solution (Python):
import sys 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
A,B,C = map(int, readline().split())
if (A == B and B != C) or (B == C and C != A) or (A == C and C != B):
    print('Yes')
else:
    print('No')

Solution (Python):
print(len({*input()})%2*'Yes'or'No')

Solution (Python):
print(len({*input()})%2*'Yes'or'No')

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

Solution (Python):
print(len(set(input()))%2*'Yes'or'No')

Solution (Python):
print(len(set(input()))%2*'Yes'or'No')

Solution (Python):
import itertools
import functools
import math
from collections import Counter
from itertools import combinations
import re

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

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

Solution (Python):


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

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

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

a_b = a==b
b_c = b==c
a_c = a==c

if a_b and b_c and a_c:    
    print("No")

elif a_b or b_c or a_c:
    print("Yes") 

else:
    print("No")

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

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

Solution (Python):
A = [0] * 10

B = list(map(int, input().split()))
for i in range(len(B)):
    A[B[i]] += 1

for i in range(len(A)):
    if A[i] == 2:
        print('Yes')
        break
else:
    print('No')

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

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

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

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

Solution (Python):
a, b, c = [int(i) for i in input("").split(" ")]
ispoor = False
if (a == b and b != c):
  ispoor = True
if (b == c and c != a):
  ispoor = True
if (c == a and a != b):
  ispoor = True
if(ispoor):
  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 b==c:
  print("Yes")
elif c==a:
  print("Yes")
else:
  print("No")

Solution (Python):
number=list(map(int,input().split()))
for i in range(1,10):
    if number.count(i)==2:
        print("Yes")
        exit(0)
print("No")

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

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

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

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

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

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

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

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

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

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

ans = "No"

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

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

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

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

s = set()

s.add(a)
s.add(b)
s.add(c)

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

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

Solution (Python):
a,b,c=map(int,input().split())
l=[b,c]
ans=0
for i in l:
  if a==i:
    ans+=1
if b==c:
  ans+=1
if ans==1:
  print("Yes")
else:
  print("No")

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

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

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

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

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

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

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

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

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

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

set = set(lists)

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

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

Solution (Python):


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

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

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

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

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

main()

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

Solution (Python):
A = list(map(int, input().split()))
L = []
for i in A:
  if i not in L:
    L.append(i)
if len(L) == 2:
  print('Yes')
else:
  print('No')

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

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

if A==B==C:
  print("No")

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

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

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

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

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

if a == b and b != c:
    ans = "Yes"
elif b == c and c != a:
    ans = "Yes"
elif a == c and c != b:
    ans = "Yes"

print(ans)

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

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

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

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

Solution (Python):
input_line = list(map(int, input().split(' ')))
result = False
for x in list(set(input_line)):
    if input_line.count(x) == 2:
        result = True
if result:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
char = list(map(str,input().split()))
if char.count(char[0]) == 2 or char.count(char[1]) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
sys.setrecursionlimit(10**7) 
import math
from copy import copy, deepcopy
from copy import deepcopy as dcp
from operator import itemgetter
from bisect import bisect_left, bisect, bisect_right

from collections import deque


from collections import Counter

from itertools import accumulate

from heapq import heapify,heappop,heappush


from functools import lru_cache



def input(): return sys.stdin.readline()[:-1]
def printl(li): _=print(*li, sep="\n") if li else None
def argsort(s, return_sorted=False): 
    inds=sorted(range(len(s)), key=lambda k: s[k])
    if return_sorted: return inds, [s[i] for i in inds]
    return inds
def alp2num(c,cap=False): return ord(c)-97 if not cap else ord(c)-65
def num2alp(i,cap=False): return chr(i+97) if not cap else chr(i+65)
def matmat(A,B):
    K,N,M=len(B),len(A),len(B[0])
    return [[sum([(A[i][k]*B[k][j]) for k in range(K)]) for j in range(M)] for i in range(N)]
def matvec(M,v):
    N,size=len(v),len(M)
    return [sum([M[i][j]*v[j] for j in range(N)]) for i in range(size)]
def T(M):
    n,m=len(M),len(M[0])
    return [[M[j][i] for j in range(n)] for i in range(m)]
def main():
    mod = 1000000007
    

    
    
    
    
    


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


if __name__ == "__main__":
    main()

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

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

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

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

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

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


if __name__ == '__main__':
    solve()

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

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

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

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

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

ans='No'

if a==b:
  if b!=c:
    ans='Yes'
elif b==c:
  ans='Yes'
elif a==c:
  ans='Yes'

print(ans)

Solution (Python):
import collections
ABC = list(map(str, input().split()))
cnt = collections.Counter(ABC)
 
if cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2:
    print('Yes')
else:
    print('No')

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

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

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

print("No")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

if __name__ == "__main__":
    main()

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

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

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

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

print("{}".format(ret))

Solution (Python):
import  itertools

li = input().split()
if li[0]==li[1]==li[2]:
    print('No')
    exit()

p=itertools.permutations(li,2)

for i in p:
   if i[0] == i[1]:
        print('Yes')
        exit()
print('No')

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

Solution (Python):
print('NYoe s'[len(set(map(int,input().split())))==2::2])

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

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

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

Solution (Python):
k=list(map(int,input().split()))
from collections import Counter
l=Counter(k)
if len(l)==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):
x = list(map(int, input().split()))

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

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

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

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

Solution (Python):

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

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

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

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

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

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

if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
import sys

input = lambda: sys.stdin.readline().rstrip()


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


if __name__ == '__main__':
    solve()

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

if len({a,b,c}) == 2:
  	print('Yes')
else:
  	print('No')

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

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

ans = "No"
cnt = 0

if a == b:
    cnt += 1

if b == c:
    cnt += 1

if c == a:
    cnt += 1

if cnt == 1:
    ans = "Yes"

print(ans)

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

Solution (Python):
a,b,c=map(int,input().split())
if (a-b)*(b-c)*(c-a) == 0 and a+b!=2*c:
  print("Yes")
else:
  print("No")

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')
else:
    print('Yes')

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

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

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

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

for i in range(1, 10):
    if numbers.count(i) == 2:
        print('Yes')
        exit()

print('No')

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

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

Solution (Python):
import sys
import decimal

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

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

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

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

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

if __name__ == '__main__':
    import sys;
    try:
        main(sys.argv)
    except TypeError:
        main()

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')
  elif a == c:
    print('Yes')
  else:
    print('No')

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

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

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

if(n[0] == n[1] == n[2]):
    print("No")
elif(n[0] == n[1] or 
    n[0] == n[2] or 
    n[1] == n[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(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):
ABC = list(input().split())
print('Yes' if len(set(ABC)) == 2 else 'No')

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x = [int(i) for i in input().split()]
y = len(set(x))

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

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

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

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

    lis = []
    count = 1

    for i in (a, b, c):
        if i in lis:
            count += 1
        lis.append(i)

    print('Yes' if count == 2 else 'No')
resolve()

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

Solution (Python):

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def main():
    A, B, C = map(int, readline().split())
    if (A == B != C) or (B == C != A) or (C == A != B):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

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

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

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

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