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

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

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

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

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

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

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

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

nn = set(n)
if len(nn) == 1:
    print('No')
elif len(nn)== 2:
    print('Yes')
else:
    print('No')

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

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

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

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

if ((a == b) and (a != c)) or ((b == c) and (b != a)) or ((c == a) and (c != b)):
    is_poor = True

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

Solution (Python):

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

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

count = 0

if A == B:
    count = count + 1
if B == C:
    count = count + 1
if C == A:
    count = 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 a == c:
    print('Yes')
else:
    print('No')

Solution (Python):



def main():
    a, b, c = input().split(" ")
    dic = dict({a: 0, b: 0, c: 0})
    dic[a] += 1
    dic[b] += 1
    dic[c] += 1
    if dic[a] == 2 or dic[b] == 2 or dic[c] == 2:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):


from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key


yn = 'YNeos'
ynflg = False
cnt = 0
ans = None

def lcm(a, b):
    return (a*b) // gcd(a,b)

def intinput():
    return int(input())

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

def lineinputs(func=intinput):
    datas = []
    while True:
        try:
            datas.append(func())
        except EOFError:
            break
    return datas



A, B, C = mulinputs()


if A == B:
    ynflg = A == C
elif B == C:
    ynflg = A == B
elif C == A:
    ynflg = B == C
else:
    ynflg = True

print(yn[ynflg::2])

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

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

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

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

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

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

count = 0
if(numbers[0] == numbers[1] or numbers[0] == numbers[2]):
    count += 1

if(numbers[1] == numbers[2]):
    count += 1


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

count=len(set(A))

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

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

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

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

if abc[0] == abc[1] and abc[1] != abc[2]:
    print('Yes')
    exit()

if abc[1] == abc[2] and abc[0] != abc[1]:
    print('Yes')
    exit()


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

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

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

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.buffer.readline
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getlist():
    return list(map(int, input().split()))
import math
import heapq
from collections import defaultdict, Counter, deque
MOD = 10**9 + 7
INF = 10**15


def main():
    nums = getlist()
    if len(list(set(nums))) == 2:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

"""
9999
3

2916
"""

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

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

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

Solution (Python):


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

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

Solution (Python):
import collections


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

counter = collections.Counter(a)

res = 'No'
for k, v in counter.items():
    if v == 2:
        res = 'Yes'

print(res)

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

def f(a):
    for i in range(len(a)):
        for j in range(i+1, len(a)):
            if (a[i] == a[j]) and (a[list(set([0,1,2])-set([i,j]))[0]] != a[i]):
                print("Yes")
                return
    print("No")
f(a)

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


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

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

Solution (Python):
X,Y,Z = map(int,input().split())
if(X == Y):
    if(Y == Z):
        print("No")
    else:
        print("Yes")
elif(X == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
elif(Y == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

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

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

Solution (Python):


import os
import datetime

def main():
    
    a, b, c = map(int, input().split())
    int_dict = {}
    int_dict[a] = ""
    int_dict[b] = ""
    int_dict[c] = ""

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

if __name__ == '__main__':
    main()

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

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

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
a,b,c = map(int,input().split())
f=0
if a==b and a!=c:
   f=1
elif a==c and a!=b:
    f=1
elif c==b and c!=a:
    f=1

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

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

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

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

Solution (Python):
inp = input().split()
count = 0
for i in range(0, len(inp)):
  if inp[i] in inp[i+1:]:
    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:
    print('Yes')
elif a == c:
    print('Yes')
elif b == c:
    print('Yes')
else:
    print('No')

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

Solution (Python):

def main():
    s = input().split()
    if len(s) == len(set(s)) or len(set(s)) == 1:
        print("No")
    else:
        print("Yes")


main()

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

nS = set(n)

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

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

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

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

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

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

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

Solution (Python):
arr = input().split(" ")

for i in range(1,10):
    if arr.count(str(i)) == 2:
        print("Yes")
        exit()
    
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==c:
    print("No")
else:
    print("Yes")

Solution (Python):
a, b, c = [int(x) for x in 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):
a, b, c = (int(x) for x in input().split())

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(A: int, B: int, C: int):
    s = set([A, B, C])
    if len(s) == 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 and b!=c or a==c and c!=b or c==b and b!=a:
    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 (A == B and A != C):
	ans = 'Yes'
else:
	ans = 'No'
print(ans)

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

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

if __name__ == "__main__":
    main()

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

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

import collections
l = [A, B, C]
c = collections.Counter(l)
a = c.most_common()

if a[0][1] == 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 and C == A:
    print("No")
else:
    print("Yes")

Solution (Python):

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

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

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


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

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

Solution (Python):


import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

Solution (Python):
values = input().split(" ")

hash = {}
for value in values:
    hash[value] = 0

if len(hash.keys()) == 2:
    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[0]!=A[2]):
    print("Yes")
else:
    print("No")

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

number_set = set(number)

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

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

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

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

for i in range(10):
    b = a.count(i)
    if b == 2:
        print("Yes")
        c = 1
        break

if c == 0:
    print("No")

Solution (Python):
from sys import stdin
a, b, c = map(int, stdin.readline().rstrip().split())
if a == b == c:
    print("No")
elif a == b or a == c or b == c:
    print("Yes")
else:
    print("No")

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

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

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

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

flag = 0

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

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

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

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

Solution (Python):
import numpy as np

ABC=np.array(input().split(),dtype=np.int32)

ABC=np.sort(ABC)

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

Solution (Python):
if __name__ == "__main__":
    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 b == c 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 != C != A:
	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):
a, b, c = map(str, input().split())

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

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

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

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

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

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

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

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

if(L[0] == L[1] or L[1] == L[2] or L[2] == L[0]):

    if(L[0] == L[1]):
        if(L[2] == L[0]):
            print("No")
            exit()
    print("Yes")
    exit()
print("No")

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

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

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

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

Solution (Python):

a = list(map(int,input().split()))
a.sort()

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

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

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

Solution (Python):
list = [int(x) for x in input().split(" ")]
result = 'No'
for i in range(len(list)):
    if list.count(list[i]) == 2:
        result = 'Yes'
        break
print(result)

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

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

def resolve():
    A, B, C = input().split()
    if A==B==C or (A!=B and B!=C and C!= A):
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':
    resolve()

Solution (Python):
a,b,c = map(int, input().split())
n = (a + b + c)/3

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

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

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

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

ans = "Yes"

if A == B and B == C and A == C:
    ans = "No"
if A != B and B != C and A != C:
    ans = "No"

print(ans)

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

if __name__ == "__main__":
    main()

Solution (Python):

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


flag = 0

if(s[0] == s[1]):
    if(s[0] != s[2]):
        print("Yes")
        flag = 1
        
if(s[1] == s[2]):
    if(s[0] != s[2]):
        print("Yes")
        flag = 1


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

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

Solution (Python):
import sys

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







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


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

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

Solution (Python):
import sys
from io import StringIO
import unittest

def resolve():
    a,b,c = list(map(int,input().strip().split()))
    if (a==b and c!=b):
        print("Yes")
        return
    
    if (a==c and c!=b):
        print("Yes")
        return

    if (b==c and a!=b):
        print("Yes")
        return

    print("No")
    return

resolve()

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

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

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

p.sort()

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

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

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

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

Solution (Python):
def A():
    A, B, C = map(int, input().split())
    if A == B or B == C or A == C:
        if (A+B+C) != A*3:
            print('Yes')
            return
    print('No')

def B():
    N = int(input())
    A = [int(i) for i in input().split()]
    for i in A:
        if i%2==0 and not (i%3==0 or i%5==0):
            print('DENIED')
            return
    print('APPROVED')
A()

Solution (Python):
def Main(A, B, C):
    if A == B and A != C:
        return 'Yes'
    elif B == C and A != B:
        return 'Yes'
    elif A == C and A != B:
        return 'Yes'
    else:
        return 'No'

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

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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