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())
if len(set({A, B, C})) == 2:
       print("Yes")
else:
       print("No")

Solution (Python):
s={int(x) for x in input().split()}
if len(s)==2:
    print('Yes')
else:
    print('No')

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

Solution (Python):

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

Solution (Python):
import collections as cl
l = [int(i) for i in input().split()]
c = cl.Counter(l)
if (len(c) == 2) :
    print("Yes")
else :
    print("No")

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

alist.sort()
if alist[0] == alist[1] and not alist[1] == alist[2]:
    print('Yes')
elif alist[1] == alist[2] and not alist[0] == alist[1]:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys

def main():
    line = sys.stdin.readline().rstrip('\n').split()
    if ((line[0]==line[1] and line[0]!=line[2]) or (line[1]==line[2] and line[0]!=line[2]) or
        (line[0]==line[2] and line[1]!=line[2])):
        print('Yes')
    else:
        print('No')

main()

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

Solution (Python):
x,y,z = map(int,input().split())	
if y == x and y == z and x == z:
  print("No")
elif  x != y and y != z and x != z:
  print("No")
else:
  print("Yes")

Solution (Python):
A,B,C = [int(x) for x in input().split()]

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

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

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

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

if __name__ == '__main__':
    solve()

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

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

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

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

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

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

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

value = 0

if a == b:
    value = value + 1

if a == c:
    value = value + 1

if b == c:
    value = value + 1

if value == 1:
    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 (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())
ans="No"
if a==b:
    if a==c:
        pass
    else:
        ans="Yes"
elif a==c:
    if a==b:
        pass
    else:
        ans="Yes"
elif b==c:
    if b==a:
        pass
    else:
        ans="Yes"
print(ans)

Solution (Python):
a,b,c = [int(x) for x in input().split()]
d = {a,b,c}
if len(d) == 2:
    print("Yes")
else:
    print("No")

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

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

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

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

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

matchflg = False
result = False
for i, d in enumerate(A):
    for f in A[(i + 1):]:
        if d == f:
            if matchflg == True:
                result = False
            elif matchflg == False:
                result = True
                matchflg = True

if result:
    print('Yes')
elif not result:
    print('No')

Solution (Python):


A, B, C = list(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):


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


if x == y and y == z and z == x:
    print("No")
elif x != y and y != z and z != x:
    print("No")
else:
    print("Yes")

Solution (Python):
a, b, c = (int(x) for x in input().split())
def check(a, b, c):
    if a==b and not(a==b==c): return(True)
    if a==c and not(a==b==c): return(True)
    if b==c and not(a==b==c): return(True)
    return False

if check(a, b, c):
    print('Yes')
else:
    print('No')

Solution (Python):

data = input().split( )

if (data[0] == data[1] or data[1] == data[2] or
   data[2] ==data[0]) and not data[1]== data[2]==data[0] :
    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):
n = set(map(int, input().split()))
if len(n) == 2:
    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(A == C):
  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 (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 != b) and (b != c) and a != c):
    print("No")
else:
    print("Yes")

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

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

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

if __name__ == "__main__":
    main()

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

if len(set((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:
    print("No")
else:
    print("Yes")

Solution (Python):
A, B, C = map(int, input().split())
if A == B and A==C and B==C:
    print('No')
elif A!=B and A!=C and B!=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(C == B and A != B):
    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 = list(map(int,input().split()))
A_unique = list(set(A))
A_length = len(A_unique)

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

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

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

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

Solution (Python):
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def S(): return input().rstrip()

def main():
    A, B, C = MI()
    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')
if __name__ == '__main__':
    main()

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

Solution (Python):
A, B, C = sorted([int(x) for x in input().split()])
if (A == B and B != C) or (A != B and B == C):
    print("Yes")
else:
    print("No")

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

if (arr[0] == arr[1] and arr[0] != arr[2]) or \
   (arr[1] == arr[2] and arr[0] != arr[1]):
  print('Yes')
else:
  print('No')

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

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

print(ans)

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

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

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

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

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

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

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

if a == b:
    if b == c:
        print('No')
    else:
        print('Yes')
elif b == c:
    print('Yes')
elif c == a:
    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 A!= C:
    print('Yes')
elif B == C and A!= C:
    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 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())
d={}
d[a]=1
d[b]=1
d[c]=1
if len(d)==2:
    print("Yes")
else:
    print("No")

Solution (Python):



def judge(info_num):
    info_num = info_num.split()
    
    num_list = []
    for num in info_num:
        if not num in num_list:
            num_list.append(num)
    result = len(num_list)
    return result

def main():
    info = input()
    result = judge(info)
    
    if result == 2:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

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

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

isPoor = False
if (A==B):
    if (A!=C):
        isPoor = True
elif (A==C):
    if (A!=B):
        isPoor = True

elif (B==C):
    if (A!=B):
        isPoor = True

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

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

Solution (Python):
n = input().split(" ")
if len(set(n)) == 2:
  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 (c-a)*(c-b)==0:
        print("Yes")
    else:
        print("No")

Solution (Python):

"""
Created on Wed Mar  4 00:27:57 2020

@author: Kanaru Sato
"""
a,b,c = list(map(int,input().split()))

diff = [a-b, b-c, c-a]

flag = 0

if diff[0]*diff[1]*diff[2] == 0:
    if abs(diff[0])+abs(diff[1])+abs(diff[2]) != 0:
        flag = 1

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

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

Solution (Python):
from collections import Counter

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

c = Counter([A, B, C])
if sorted(list(c.values())) == [1, 2]:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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


if a==b and b==c and 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())

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

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

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

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

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

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

Solution (Python):


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

lis = [a, b, c]

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

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

Solution (Python):
from sys import stdin

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

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

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

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

X="Yes"
Y="No"

if A==B:
    if A==C:
        print(Y)
    else:
        print(X)

elif A==C:
    if A==B:
        print(Y)
    else:
        print(X)

elif B==C:
    if B==A:
        print(Y)
    else:
        print(X)

else:
    print(Y)

Solution (Python):

A, B, C = map(int, input().split())
s = { A, B, C }
if ( len(s) == 2 ) :
    print("Yes")
else :
    print("No")

Solution (Python):
ABC = list(map(int,input().split()))
ABC.sort()
a_b = ABC[1]-ABC[0]
a_c = ABC[2]-ABC[1]
b_c = ABC[2]-ABC[0]
list_abc=[]
list_abc.append(a_b)
list_abc.append(a_c)
list_abc.append(b_c)
list_abc.sort()
if list_abc[0]==0:
    if list_abc[1]==0:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Solution (Python):
def solve(string):
    a, b, c = sorted(map(int, string.split()))
    return "Yes" if (a == b and b != c) or (a != b and b == c) else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

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

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

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

Solution (Python):
A, B, C =[int(i) for i in input().split()]

if ((A !=B) & (B==C)) | ((A !=B) & (A==C)) | ((A !=C) & (B==A)):
  ans ="Yes"
else:
  ans = "No"
  
print(ans)

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

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

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

if ((a==b)+(b==c)+(c==a)):
    if ((a==b)*(b==c)):
        ans = 'No'
    else:
        ans = 'Yes'
else:
    ans = 'No'

print(ans)

Solution (Python):


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


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



print(ans)

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

print('YNeos'[len(set(abc))!=2::2])

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

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

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

Solution (Python):
l = input().split()
l.sort()
if(l[0]!=l[2] and (l[0]==l[1] or l[1] == l[2])):
    print('Yes')
else:
    print('No')

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

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

def main():
    N = list(map(int,input().split()))
    if len(set(N)) == 2:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

count = 0
for i in range(1,3):
  if n[0] == n[i]:
    count+=1

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

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

if a==c:
    print('Yes')
    sys.exit()
    
print('No')

Solution (Python):

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

print(ans)

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

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

Solution (Python):
a,b,c=map(int,input().split())
if a==b and a!=c:
  print("Yes")
elif 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):
import numpy as np
import math as m

def main(**kwargs):
    if len(set([a, b, c])) == 2:
        r = "Yes"

    else:
        r = "No"

    return r

if __name__ == "__main__":
    cin = np.array(input().split(" ")).astype("int")
    a, b, c = cin

    cout = main(a=a, b=b, c=c)
    print(cout)

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

y = 0
for i in range(3):
    if l1[(i+0)%3] == l1[(i+1)%3] and l1[(i+1)%3] != l1[(i+2)%3]:
        y = 1
if y == 1:
    print('Yes')
else:
    print('No')

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

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

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

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

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

Solution (Python):
x=input().split()
num=[]
for k in range(3):
  num.append(int(x[k]))
num.sort()

a=num[1]-num[0]
b=num[2]-num[1]
if a*b!=0:
  print('No')
else:
  if a+b==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 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 == 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())

def hantei(n1,n2,n3):
  ans="Yes"
  if n1==n2 and n2==n3:
    ans="No"
  if n1!=n2 and n2!=n3 and n3!=n1:
    ans="No"
  return ans

print(hantei(a,b,c))

Solution (Python):
n = list(map(int, input().split()))
s=0
for i, x in enumerate(n):
    if x in n[i+1:]: s+=1
print("%s" % "Yes" if s==1 else "No")

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

count = 0
for i in ABC:
    if(i == ABC[0]):
        count += 1
    if(i == ABC[1]):
        count += 1
    if(i == ABC[2]):
        count += 1

count = count - 3
if(count == 2):
    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())

flg = False
if a == b and a != c:
    flg = True
elif a == c and a != b:
    flg = True
elif b == c and b != a:
    flg = True

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

Solution (Python):
import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
def resolve():
    A, B, C = sorted(lr())
    if A == B and B < C:
        print('Yes')
    elif A < B and B == C:
        print('Yes')
    else:
        print('No')
resolve()

Solution (Python):
import sys
from math import *
from collections import deque, Counter, defaultdict
from fractions import gcd
input = lambda: sys.stdin.readline().rstrip()

def eprint(s):
    sys.stderr.write('DEBUG: {}'.format(s))
    return

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

    return

if __name__ == '__main__':
    main()

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):
def kawaiso(a, b, c):
  if (a == b and b != c) or (b == c and c != a) or (c == a and a != b):
    return 'Yes'
  else:
    return 'No'
 
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
 
print(kawaiso(a, b, c))

Solution (Python):
def kawaiso(a, b, c):
  if (a == b and b != c) or (b == c and c != a) or (c == a and a != b):
    return 'Yes'
  else:
    return 'No'

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

print(kawaiso(a, b, c))

Solution (Python):
if __name__ == '__main__':

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

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

Solution (Python):
from sys import stdin
import math

if __name__ == '__main__':
	n = stdin.readline()
	n = n.rstrip('\n')
	n = n.split(' ')
	n = [int(i) for i in n]
	n.sort()
	if (n[0] == n[1] and n[1] != n[2]) or (n[0] != n[1] and n[1] == n[2]):
		print('Yes')
	else:
		print('No')

Solution (Python):
import math

class Input():
	def readInt(self):
		return int(input())

	def readIntArray(self):
		return [int(x) for x in input().split(" ")]

	def readString(self):
		return input()

	def readStringArray(self):
		return input().split(" ")

	def readFloat(self):
		return float(input())

	def readFloatArray(self):
		return [float(x) for x in input().split(" ")]

def main():
	inp = Input()
	arr =  inp.readIntArray()
	s = set()
	s.update(arr)
	if len(s) == 2:
		print("Yes")
	else:
		print("No")

if __name__ == "__main__":
   main()

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