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] = input().split()

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

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):

from collections import deque

def comb(a, b):
    result = 1
    for i in range(b):
        result *= (a - i) / (i + 1)
    return result


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

    if len(set([A, B, C])) == 2:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

ans = "No"
if (A == B and A != C) or (B == C and B != A) or (C == A and C != B):
    ans = "Yes"

print(ans)

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

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

else:
  print('Yes')

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

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

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

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

def main(A, B, C):

    if A == B:
        if not A == C:
            return "Yes"

    if A == C:
        if not A == B:
            return "Yes"

    if B == C:
        if not A == B:
            return "Yes"
    
    return "No"

if __name__ == "__main__":

    answer = main(A, B, C)
    print(answer)

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

ans = set([a,b,c])
if len(ans) == 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):
import numpy as np
a=np.array(list(map(int, input().split())))

def main():
  for i in range(3):
    if (a[i]==a).sum()==2:
      print('Yes')
      return
  print('No')
main()

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

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

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

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

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

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

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

if (a - b) * (b - c) * (c - a) == 0 and not ((a == b) and (a == c)):
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
from collections import Counter
nums = list(map(int, input().split()))
hoge = Counter(nums)
hoge = sorted(hoge.items(), key=lambda x: x[1], reverse=True)
if len(hoge) == 2 and hoge[0][1] == 2:
    print('Yes')
else:
    print('No')

Solution (Python):



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

output = "No"
if (A==B and A!=C) or (A==C and A!=B) or (B==C and A!=B):
    output = "Yes"


print(output)

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=set(a)
print('Yes' if len(a)-len(b)==1 else 'No')

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

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

Solution (Python):
a, b, c = 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==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:
    if a != c:
        ans = "Yes"
    else:
        ans = "No"
else:
    if a == c or b == c:
        ans = "Yes"
    else:
        ans = "No"


print(ans)

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

if n==j:
  if n!=l:
    print("Yes")
  else:
    print("No")
elif n==l or j==l:
  print("Yes")
else:
  print("No")

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

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

N = {A,B,C}
if len(N) == 2:
    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):

import sys

YES = "Yes"  
NO = "No"  

def solve(A: int, B: int, C: int):
    list = [A,B,C]
    if len(set(list)) == 2:
        print(YES)
    else:
        print(NO)

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):
abc = list(map(int,input().split()))
abc_ = {}
for a in abc:
  if a not in abc_:
    abc_[a] = 1
  else:
    abc_[a] += 1
if len(abc_) == 2:
  print("Yes")
else:
  print("No")

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

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

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

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):
import sys







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


def solve(a, b, c):

    if a == b:
        if a == c:
            return 'No'
        else:
            return 'Yes'

    if b == c:
        if a == c:
            return 'No'
        else:
            return 'Yes'

    if c == a:
        if a == b:
            return 'No'
        else:
            return 'Yes'

    return 'No'


if __name__ == '__main__':
    main()

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

Solution (Python):


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

Solution (Python):


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

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

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

Solution (Python):


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

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

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

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

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

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

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

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

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

Solution (Python):

line = input().split(" ")
A, B, C = [int(i) for i in line]

answer = "No"
if A == B and B != C:
    answer = "Yes"
elif A == C and A != B:
    answer = "Yes"
elif B == C and B != A:
    answer = "Yes"

print(answer)

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

print("No")

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

Solution (Python):

import sys
sys.setrecursionlimit(10000000)
INF = 1<<32

YES = "Yes"  
NO = "No"  

def solve(A: int, B: int, C: int):
    if len(set([A,B,C])) == 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):
N=list(map(int,input().split()))
if len(set(N))==2:
  print("Yes")
else:
  print("No")

Solution (Python):
read = input 
rn = lambda :list(map(int, read().split()))
inp = rn()
a,b,c = sorted(inp)
flag = False
if a == b or b == c:
    if a != c:
        flag = True
print("Yes" if flag else "No")

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

Solution (Python):
a = []

for i in map(int, input().split()):
    if i not in a:
        a.append(i)

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

else:
    print('No')

Solution (Python):
L = [int(s) for s in input().rstrip().split(' ')]
L_0 = set(L)
if len(L_0) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
def poor(a , b , c):

    s = {a , b , c}

    return "Yes" if len(s) == 2 else "No"
def main():
    a , b , c = map(int , input().split())
    print(poor(a , b , c))

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

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

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

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

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

ans = "No"
if len(list_score_a) == 2:
    ans = "Yes"

print(ans)

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

table = [0]*10

table[A] += 1
table[B] += 1
table[C] += 1

if 2 in table:
  print("Yes")
else:
  print("No")

Solution (Python):


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

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

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

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

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

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

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

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

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

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

Solution (Python):
from pprint import pprint

def solve(a, b, c):
    nums = set()
    nums.add(a)
    nums.add(b)
    nums.add(c)
    print("Yes" if len(nums) == 2 else "No")


if __name__ == "__main__":
    a, b, c = map(int, input().split(" "))
    solve(a, b, c)

Solution (Python):
from collections import defaultdict
from collections import deque
from string import ascii_uppercase
import sys, bisect, math, heapq

stdin = sys.stdin
read_int = lambda : list(map(int,stdin.readline().split()))
read_str = lambda : stdin.readline().rstrip()

a, b, c = read_int()

def solve():
    if (a == b == c) or (a != b and b != c and c != a):
        return "No"
    return "Yes"

if __name__ == "__main__":
    print(solve())

Solution (Python):



import sys
input = sys.stdin.readline


def main():
    a = list()
    for i in map(int, input().split()):
        a.append(i)

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


if __name__ == '__main__':
    main()

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

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

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

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

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

Solution (Python):

import sys,os
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
    input = lambda: given().rstrip()
    LMIIS = lambda: list(map(int,input().split()))
    II = lambda: int(input())
    XLMIIS = lambda x: [LMIIS() for _ in range(x)]
    YN = lambda c : print('Yes') if c else print('No')
    MOD = 10**9+7

    a,b,c = LMIIS()
    YN((( a==b and a != c)or (b==c and b!=a) or (c==a and c!=b)))


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

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


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

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

t = {}

t[A] = t.get(A, 0) + 1
t[B] = t.get(B, 0) + 1
t[C] = t.get(C, 0) + 1

flag = False
for k, v in t.items():
    if v == 2:
        flag = True 


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

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

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

else:
    print('No')

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

if __name__ == '__main__':
  run()

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

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

S_ = set(S)

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

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

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

if __name__ == "__main__":
    run()

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

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

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

Solution (Python):
def solve():
    A, B, C = [int(x) for x in input().split()]
    if A == B and not A == C:
        return 'Yes'
    if A == C and not A == B:
        return 'Yes'
    if B == C and not A == B:
        return 'Yes'
    else:
        return 'No'

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

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

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

if len(set([A, B, C])) == 2:
    print('Yes')
else:
    print('No')

Solution (Python):


from sys import stdin, stderr

def main():
   A = map(int, stdin.readline().split())
   A.sort()
   if A[0] == A[2]:
      print('No')
   elif A[0] == A[1] or A[1] == A[2]:
      print('Yes')
   else:
      print('No')

   return 0

if __name__ == '__main__': main()

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

Solution (Python):
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        print('Yes')
    else:
        print('No')

main()

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

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

ans = []
ans.append(A.count(A[0]))
ans.append(A.count(A[1]))
ans.append(A.count(A[2]))

if 2 in ans:
    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):
import sys
input = sys.stdin.readline

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

def cond():
    if a == b and a != c:
        return True
    if a == c and a != b:
        return True
    if b == c and a != b:
        return True
    return False

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

if len(A) == 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())

ans = "No"

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

print(ans)

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

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

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

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

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

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

Solution (Python):

a, b, c = map(int, input().split())
lst = [a == b, b == c, c == a]
if lst.count(True) == 3 or lst.count(True) == 0:
    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 = input().split()

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

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

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

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

f = 0

if a == b == c:
    f = 0
elif a == b or b == c or a == c:
    f = 1

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

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

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

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

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

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

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

Solution (Python):


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

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

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


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

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