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-----
5 7 5

-----Sample Output-----
Yes

A and C are equal, but B is different from those two numbers, so this triple is poor.

Difficulty: introductory

Starter code:

Solutions:
from collections import Counter
c=Counter(list(map(int,input().split())))
if len(c)==2:print('Yes')
else:print('No')

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

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

import os, sys, re, math

(A, B, C) = [int(n) for n in 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')


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

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

for _ in num:
    if num.count(_) == 2:
        print("Yes")
        break
    else:
        continue
else:
    print("No")

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


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

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

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

l = input().split(' ')
print('Yes' if len(set(l)) == 2 else 'No')

import collections
l = list(map(int,input().split()))
c = collections.Counter(l)
ans = 'No'

if len(c) == 2:
    ans = 'Yes'
print(ans)

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

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


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

a, b, c = list(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')


print(['No','Yes'][2==len(set(input().split()))])

A = sorted(list(map(int,input().split())))

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

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

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

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

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

else:
    print("No")



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

lst = input().split()
a = int(lst[0])
b = int(lst[1])
c = int(lst[2])

cnt = 0

if a == b:
    cnt += 1
    
if b == c:
    cnt += 1
    
if c == a:
    cnt += 1

if cnt == 1:
    print("Yes")
else:
    print("No")


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

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

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

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


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

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

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



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

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

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

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

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

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

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


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

A,B,C=map(int,input().split())
cnt=0
if A==B:
  cnt+=1
if A==C:
  cnt+=1
if B==C:
  cnt+=1
if cnt==1:
  print("Yes")
else:
  print("No")


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

def __starting_point():
    print(main())
__starting_point()

def main():
	a, b, c = list(map(int, input().split()))
	if (a == b and a != c and b!=c )or \
		(a == c and a != b and b!=c )or \
		(b == c and a != b and a!=c) :
		return "Yes"
	return "No"

def __starting_point():
    print((main()))

__starting_point()

print(["No","Yes"][len(set(input().split()))==2])

l= list(map(int,input().split()))
la = list(set(l))
if len(la)==3 or len(la)==1:
  print("No")
else:
  print("Yes")


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

a, b, c = list(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')


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

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

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


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


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

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


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

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

s = { a,b,c}

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

A, B, C = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans)

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

s.add(A)
s.add(B)
s.add(C)

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

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

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

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

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

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

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

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

A,B,C = map(int,input().split())
print("Yes") if len(set([A,B,C]))==2 else print("No")

x = set(input().split())
print("Yes" if len(x) == 2 else "No")

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

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

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

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


#155-A

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

D =[A,B,C]

D.sort()

#print(D)

if D.count(A)== 2:
    print("Yes")

elif D.count(A)== 1:
    if B == C:
        print("Yes")

    else:
        print("No")

elif D.count(A)== 3:
    print("No")


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

count = 0

if A == B:
    count += 1
if B == C:
    count += 1
if A == C:
    count += 1

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

import collections

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

c = collections.Counter(li)

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


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

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

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

A,B,C=map(int,input().split());print("YNeos"[3==len(set([A,B,C]))or A==B==C::2])

import collections

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

c = collections.Counter(li)

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

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

if A == B:
    count +=1
if B == C:
    count +=1
if A == C:
    count +=1

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


a, b, c = [int(i) for i in input().split()]
print('Yes' if len(set([a, b, c])) == 2 else 'No') 

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 print("Yes")

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


print(['No', 'Yes'][len(set(input().split())) == 2])

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

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

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

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


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

# coding: utf-8
# Your code here!

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

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


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


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

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

#ABC155
s = input().split()
print("Yes" if len(set(s))==2 else "No")

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

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


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

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

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

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

l = set(map(int, input().split()))
if len(l) == 2:
    print("Yes")
    return
print("No")

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

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

S = input().split()

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

a = [int(i) for i in input().split()]
if (a[0] == a[1] and a[0] != a[2]) or (a[0] == a[2] and a[0] != a[1]) or (a[2] == a[1] and a[2] != a[0]):
    print('Yes')
else:
    print('No')

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

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

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


def solve(A, B, C):
    if A==B or A==C:
        if(A==B and B==C):
            print("No")
        else:
            print("Yes")
    elif B==C:
        print("Yes")
    else:
        print("No")

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

A,B,C=map(int,input().split())
ans=0
if A==B:
    ans+=1
if B==C:
    ans+=1
if A==C:
    ans+=1
if ans==1:
    print("Yes")
else:
    print("No")

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

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


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

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

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

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

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