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



Sample input:
5 7 5


Sample output:
Yes

Submission status: Accepted

Solution code:
s = set(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
a = set(map(int, input().split()))

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
if max(a)!=min(a) and (sum(a)-max(a)-min(a)==max(a) or sum(a)-max(a)-min(a)==min(a)):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

if A == B or B == C or C == A:
    ans = "Yes"
else:
    ans = "No"

if A == B and B == C:
    ans = "No"
else:
    pass
print(ans)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
a,b,c=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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
x = input().split()
count = 0
for i in x:
  for j in x:
    if i == j:
      count += 1
if count > 3 and count != 9:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

print('Yes' if len({A, B, C}) == 2 else 'No')

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
l = {A,B,C}
if len(l) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    li = list(map(int, input().split()))
    ans = "Yes" if len(set(li)) == 2 else "No"
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
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")

Submission status: Accepted

Solution code:
a, b, c = list(map(int, input().split()))
count = 0

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if [a, b, c].count(a) == 2 or [a, b, c].count(b) == 2 or [a, b, c].count(c) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def main():
    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")

main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if [a,b,c].count(a) == 2 or [a,b,c].count(b) == 2 or [a,b,c].count(c) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#! env/bin/local python3

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

flag = False
if a == b and b == c:
    flag = True

if a is not b and b is not c and c is not a:
    flag = True

print('No' if flag else 'Yes')

Submission status: Accepted

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

s = {a, b, c}

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

Submission status: Accepted

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

x = sorted([a, b, c])

yes = (
    (x[0] == x[1] and x[0] != x[2])
    or (x[0] == x[2] and x[0] != x[1])
    or (x[1] == x[2] and x[0] != x[1])
)

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, b, c = map(int, input().split())
print(["No", "Yes"][(a == b or b == c or c == a) and not (a == b == c)])

Submission status: Accepted

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

list = [A,B,C]

a = set(list)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
l = ILI()
a = "No"
for s in l:
	if l.count(s) == 2: a="Yes"
print(a)

Submission status: Accepted

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

Submission status: Accepted

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

ans = False

if a == b and a != c:
    ans = True
if b == c and b != a:
    ans = True
if c == a and c != b:
    ans = True

print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

print(poor)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
l = set([a, b, c])

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

Submission status: Accepted

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

set_abc = len(set(abc))

if set_abc == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

a = sorted(nl())

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
isok = False
if(a==b and a!=c):
    isok = True
elif(a==c and a!=b):
    isok = True
elif(b==c and a!=b):
    isok = True

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

Submission status: Accepted

Solution code:
a = input().split()
count = 0
if a[0] == a[1]:
    count = count + 1
if a[1] == a[2]:
    count = count + 1
if a[0] == a[2]:
    count = count + 1
if count == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = input().split()
count = 0
if a[0] == a[1]:
    count = count + 1
if a[1] == a[2]:
    count = count + 1
if a[0] == a[2]:
    count = count + 1
print("Yes" if count == 1 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
m = list(set([a,b,c]))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

num_list.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC155A

def f(a, b, c):
    x = sorted([a, b, c])
    if (x[0] == x[1] and x[1] != x[2]) or (x[0] != x[1] and x[1] == x[2]):
        print('Yes')
    else:
        print('No')

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

Submission status: Accepted

Solution code:
import collections
elems = map(int, raw_input().split(' '))

def f(elems):
	elems.sort()
	
	return (elems[0] == elems[1] and elems[1] != elems[2]) or (elems[1] == elems[2] and elems[0] != elems[1])


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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin 
input = stdin.readline
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
s = set(input().split())

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

Submission status: Accepted

Solution code:
input =input().split();
a,b,c =map(int,input)
input=set(input)
leng=(len(input))

if leng==2: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
S = input()
print('YNeos'[(S[0] != S[2] and S[0] != S[4] and S[2] != S[4]) or (S[0] == S[2] and S[2] == S[4])::2])

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
A, B ,C = 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")

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
A, B, C = list(map(int, input().split()))
S = set({A, B, C})
if len(S)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
A, B, C =(int(x) for x in input().split())
if (A == B and B!=C and A!= C) or (A!=B and A==C and B!=C) or (A !=B and B==C and C !=A):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

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

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

Submission status: Accepted

Solution code:
def ABC_155_A():
    A,B,C = map(int, input().split())

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

if __name__ == '__main__':

    ABC_155_A()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
import math
import fractions
import functools
a, b, c = map(int, input().split())
if (a == b and a != c) or (b == c and b != a) or (a == c and a != b):
    print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
#入力例４!なんでや！
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
X,Y,Z = map(int,input().split())

if X == Y == Z:
    print("No")
elif X != Y and X != Z and Y != Z:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

def LI(): return list(map(int, stdin.readline().split()))
def LS(): return list(stdin.readline())

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

Submission status: Accepted

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

n = len(set(a))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin, setrecursionlimit


def main():
    a, b, c = map(int, stdin.readline().split())
    print('Yes') if 3 - len(set([a, b, c])) == 1 else print('No')


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
L = set(map(int,input().split()))

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

Submission status: Accepted

Solution code:
L = list(map(int,input().split()))
L.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

buff = set(ls)

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Thu May  7 22:09:30 2020

@author: shinba
"""
A = set(map(int,input().split()))

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cur = set(map(int, input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=[0]*3
A[0],A[1],A[2]=map(int,input().split())
A.sort()

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

Submission status: Accepted

Solution code:
A,B,C=map(int, input().split()) #1 2 3

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

Submission status: Accepted

Solution code:
from sys import stdin, setrecursionlimit


def main():
    a, b, c = map(int, stdin.readline().split())

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


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()