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

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

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

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

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

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

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

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

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

s = set(l)

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

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

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

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

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

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

Solution (Python):
a, b, c = map(int,input().split())
d = set([a,b,c])
if len(d) == 2:
    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):
mitu=[int(i) for i in input().split()]
mitu=set(mitu)

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

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

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

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

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

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

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

Solution (Python):
x = list(map(int, input().split()))
x = sorted(x)
if x.count(x[1]) == 2:
     print("Yes")
else:
     print("No")

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

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

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

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

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

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

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

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

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

v.sort();
if (v[0] == v[1] or v[1] == v[2]) and v[0] != v[2]:
    print('Yes');
else:
    print('No');

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

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

Solution (Python):
a,b,c=map(int,input().split());print('YNeos'[a==b==c or a!=b!=c!=a::2])

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

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

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

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

Solution (Python):



def main():

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

    result = "No"
    if len(check) == 2:
        result = "Yes"

    return result


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

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

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

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

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

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

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

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

Solution (Python):
if __name__ == '__main__':
    x, y, z = (int(x) for x in input().split())
    if x == y == z:
        print('No')
    elif x == y or y == z or x == z:
        print('Yes')
    else:
        print('No')

Solution (Python):
arr=list(map(int,input().strip().split()))[:3]
dict1={}
for i in arr:
    if i in dict1:
        dict1[i]+=1
    else:
        dict1[i]=1
if(len(dict1)==2):
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
lst = [int(i) for i in input().rstrip().split(' ')];

for i in range(len(lst)):
    if lst.count(lst[i]) == 2:
        print('Yes')
        sys.exit()
print('No')

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

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

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

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

num = list()
num.append(int(A))
num.append(int(B))
num.append(int(C))
if len(list(set(num))) == 2:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
from sys import stdin

a, b, c = stdin.readline().rstrip().split()

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

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

Solution (Python):
A,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):

n = [int(s) for s in input().split()]
print('Yes' if n.count(n[0]) == 2 or n.count(n[1]) == 2 or n.count(n[2]) == 2 else 'No')

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

st = set(li)

if len(st) == 2:
    ans = "Yes"
else:
    ans = "No"

print(ans)

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

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

Solution (Python):
A = set(map(int, input().split()))
print("Yes" if len(A) == 2 else "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 == 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 == 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: 
		print('No')
	else:
		print('Yes')
elif 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 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().strip().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):
print('YNeos'[len(set(input().split()))%2::2])

Solution (Python):
import bisect
import heapq
import sys
import queue


input = sys.stdin.readline
sys.setrecursionlimit(100000)


class V:
    def __init__(self, f):
        self.f = f
        self.v = None

    def __str__(self):
        return str(self.v)

    def ud(self, n):
        if self.v is None:
            self.v = n
        else:
            self.v = self.f(self.v, n)

    def get(self):
        return self.v


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


def read_list():
    return list(read_values())


def main():
    A, B, C = read_values()
    if len({A, B, C}) == 2:
        print("Yes")
    else:
        print("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):
List = input().split()
print("Yes" if len(set(List)) == 2 else "No")

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

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

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

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

Solution (Python):
n = input()
(a,b,c) = n.split()
y='Yes'
d='No'
if a in (b, c) and b is not c:
    print(y)
elif b in (a, c) and a is not c:
    print(y)
else:
    print(d)

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

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

print("Yes" if(count == 1) else "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'
print(ans)

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

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

Solution (Python):
import itertools
import fractions
def main():
  L = list(map(int,input().split()))
  l = set(L)
  for a in l:
    if L.count(a) == 2:
      print('Yes')
      exit()
  print('No')
  
if __name__ == '__main__':
  main()

Solution (Python):
a,b,c=[int(s) for s in input().split()]
if (a-b)*(b-c)*(c-a)==0:
  if (a-b)**2+(b-c)**2+(c-a)**2==0:
    print('No')
  else:
    print('Yes')
else:
  print('No')

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

print(ans)

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

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

resolve()

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

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

Solution (Python):
import sys

*a, = map(int, sys.stdin.readline().split())

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

if __name__ ==  '__main__':
    main()

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

Solution (Python):

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

sameNum = 0
diffNum = 0

for n in x:
    for m in x:
        if n == m:
            sameNum += 1
        else:
            diffNum += 1

if sameNum == 5:
    print("Yes")
else:
    print("No")

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

s = set([a, b, c])
if (len(s) == 3 or len(s) == 1):
    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) or (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 = list(map(int, input().split()))
if len(set(a)) == 2:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

Solution (Python):

ary = input().split(" ")
a = ary[0]
b = ary[1]
c = ary[2]

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

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

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

Solution (Python):
import sys

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))


a=nl()
j=0
for i in range(0,10):
    if i in a:
        j+=1

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

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

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

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
aset = set(sorted(iil()))
if len(aset) == 2:
    print('Yes')
else:
    print('No')

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

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

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

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

num = len(set([a, b, c]))

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

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

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

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

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

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

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

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

if A==B!=C or A==C!=B or B==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) 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())

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

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

tmp_dic = {}
for n in lis:
    if n not in tmp_dic:
        tmp_dic[n] = 1
    else:
        tmp_dic[n] += 1
        
if len(tmp_dic) == 2:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
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 B!=C:
    print("Yes")
  else:
    print("No")
elif (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) 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()))
if a.count(a[0]) == 2 or a.count(a[1]) == 2:
    print("Yes")
else:
    print("No")

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

Solution (Python):
import collections
S=list(map(int,input().split()))
S=collections.Counter(S)
S=S.most_common()
if S[0][1]==2:
  print("Yes")
else:
  print("No")

Solution (Python):
A = [x for x in input().split()]
if A.count(A[0]) == 2 or A.count(A[1]) == 2 or A.count(A[2]) == 2:
  print('Yes')
else:
  print('No')

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

if(A==B and B!=C):
    print("Yes")
elif(A==C and A!=B):
    print("Yes")
elif(B==C and A!=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 = list(map(int, input().split()))
cl = set(a)

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

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

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

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

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

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

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

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

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

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

Solution (Python):

s = list(input().split())


isPoor = False
if s[0] == s[1] and s[1] != s[2]:
    isPoor = True
if s[1] == s[2] and s[2] != s[0]:
    isPoor = True
if s[2] == s[0] and s[0] != s[1]:
    isPoor = True

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

Solution (Python):

s = list(input().split())


isPoor = False
if s[0] == s[1] and s[1] != s[2]:
  isPoor = True
if s[1] == s[2] and s[2] != s[0]:
    isPoor = True
if s[2] == s[0] and s[0] != s[1]:
	isPoor = True

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

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

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

ret = "No"

if A == B and A != C:
    ret = "Yes"
elif A == C and A != B:
    ret = "Yes"
elif B == C and B != A:
    ret = "Yes"

print(ret)

Solution (Python):
from collections import Counter
abc = list(map(int, input().split()))
cnt = list(Counter(abc).values())
cnt.sort()
if cnt == [1, 2]:
    print('Yes')
else:
    print('No')

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

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

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

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

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

c1 = n.count(n[0])
c2 = n.count(n[1])
if c1==2 or c2 == 2:
  print('Yes')
else:
  print("No")

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

if __name__ == '__main__':
    main()

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

if __name__ == '__main__':
    main()

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

Solution (Python):

a,b,c = (int(x) for x in input().split(" "))


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

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

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

Solution (Python):
import sys

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

if nlist[0] == nlist[1] and nlist[1] == nlist[2] and nlist[0] == nlist[2]:
  print('No')
  sys.exit()

if nlist[0] == nlist[1] or nlist[1] == nlist[2] or nlist[0] == nlist[2]:
  print('Yes')
  sys.exit()
  
print('No')

Solution (Python):
n = sorted([e for e in input().split(" ")])
print("Yes" if n.count(n[1]) == 2 else "No")

Solution (Python):
a = input().split()
if a.count(a[0])==2 or a.count(a[1]) ==2:
    print('Yes')
else:
    print('No')

Solution (Python):
'''
    Auther: ghoshashis545 Ashis Ghosh
    College: jalpaiguri Govt Enggineerin College
    Date:24/03/2020
'''

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
















    
    
if __name__ =="__main__":
    main()

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

print("No")

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

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

Solution (Python):
list_num = list(map(int, input().split()))
x = list_num[0]
y = list_num[1]
z = list_num[2]

if (x == y and x != z) or (x == z and x != y) or (y == z and x != y):
  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):


x,y,z = map(int, input().split())
n = 0
if x == y:
    n += 1
if y == z:
    n += 1
if z == x:
    n += 1
if n == 1:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def main():
    A,B,C = map(int,input().split())
    if A == B and A != C:
        return "Yes"
    elif A == C and A != B:
        return "Yes"
    elif B == C and B != A:
        return "Yes"
    else:
        return "No"
print(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==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 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 == 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:
    print("No")
elif A != B and B!= C and A != C:
    print("No")
else:
    print("Yes")