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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = [int(x) for x in input().rstrip().split()]
d = {}
for x in l:
    if x in d.keys():
        d[x] += 1
    else:
        d[x] = 1
if 2 in d.values():
    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")
else:
    if a==c:
        print("Yes")
    elif b==c:
        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:
ele_l = input().split()
if(len(set(ele_l))==2):
    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 = input().split()
 
if (int(A[0]) == int(A[1])) and (int(A[1]) == int(A[2])):
  print("No")
elif (int(A[0]) != int(A[1])) and (int(A[1]) != int(A[2])) and(int(A[0]) != int(A[2])):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
#At coder 2020/2/16 A

# スペース区切りの数の入力
A,B,C= input().split()
#A, B = map(int,input().split())
#U=input()

if A==B:
    if A==C:
        U='No'
    else:
        U='Yes'
else:
    if A==C:
        U='Yes'
    else:        
        if B==C:
            U='Yes'
        else:
            U='No'

print(U)

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:
nums = list(map(int,input().split()))
poor = False
for n in nums:
  if nums.count(n) == 2:
    poor = True
print("Yes" if poor else "No")

Submission status: Accepted

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

# process
result = False

if not(A == B and A == C):
    if A == B or A == C or B == C:
        result = True

# output
print("Yes" if result else "No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    abc = [int(i) for i in input().split(" ")]
    abc.sort()
    if abc[0] == abc[1]:
        if abc[1] != abc[2]:
            print("Yes")
            exit(0)
    else:
        if abc[1] == abc[2]:
            print("Yes")
            exit(0)
    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 a!=c and b!=c):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = [int(x) for x in input().split()]
if len(list(set(abc))) != 2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A, B, C = input().split()
flag = 0

if A == B and A != C:
  flag = 1

if A == C and A != B:
  flag = 1
  
if B == C and B != A:
  flag = 1
  
if flag == 1:
  print("Yes")
elif flag == 0:
  print("No")

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
kawaisou=False
for j in i:
    if i.count(j)==2:
        kawaisou=True
if kawaisou:
    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")
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")

Submission status: Accepted

Solution code:
#155 a 
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 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:
poor = input().split()
A = int(poor[0])
B = int(poor[1])
C = int(poor[2])

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

Submission status: Accepted

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

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

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:
def main():
    a,b,c=map(int,open(0).read().split())
    if a==b or b==c or c==a:
        if a==b and b==c and c==a:
            print("No")
            return
        print("Yes")
        return
    else:
        print("No")
        return
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A
A, B, C = map(int, input().split())
ans = "No"

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

Submission status: Accepted

Solution code:
abc = input().split(' ')

a = int(abc[0])
b = int(abc[1])
c = int(abc[2])

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

print(ans)

Submission status: Accepted

Solution code:
a,b,c = list(map(int, input().split()))
res = "No"

if(not a == b == c and (a == b or b == c or a == c)):
  res = "Yes"

print(res)

Submission status: Accepted

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

s = set()
for i in a:
    s.add(i)

if len(s) == 1 or len(s) == 3:
    ans = "No"
else:
    ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

setall = set(all)

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
temp_list = input().split()
temp_len = len(temp_list)

if temp_len - 1 == len(list(set(temp_list))):
    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 != c:
    print("Yes")
elif a != b == c:
    print("Yes")
elif a == c != b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = list(map(int, input().split()))
 
l = [0] * 10
 
l[A] += 1
l[B] += 1
l[C] += 1
 
if max(l) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a = [int(i) for i in 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')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8


def main():

    seiji_numbers_list = list(map(int, input().split(' ')))
    
    if (len(seiji_numbers_list) - len(set(seiji_numbers_list))) == 1:
        print('Yes')
    else:
        print('No')

    return 0


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = [int(i) for i in 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")

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:
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 = map(int, input().split())
if A==B and A!=C:
	print('Yes')
elif A==C and B!=C:
	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())
f1 = f2 = f3 = 0

if A == B:
    f1 = 1
if B == C:
    f2 = 1
if C == A:
    f3 = 1

if f1+f2+f3 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers = input().split(' ')
numbers_set = set(numbers)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np

if __name__=="__main__":
    abc  = [int(x) for x in input().split()]
    if np.unique(abc).size == 2:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
# スペース区切りの整数入力
A,B,C = map(int, input().split())

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

Submission status: Accepted

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

if __name__=='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import numpy as np

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

Submission status: Accepted

Solution code:
S = [int(s) for s in input().split()]
S = set(S)
if len(S) == 2: print("Yes")
else: print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

s = { A, B, C }

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

Submission status: Accepted

Solution code:
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda x: [ns() for _ in range(x)]
nas = lambda: stdin.readline().split()

a = na()

cnt = 0
if a[0] == a[1]:
    cnt += 1
if a[1] == a[2]:
    cnt += 1
if a[2] == a[0]:
    cnt += 1

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

Submission status: Accepted

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

if  len(set(l)) == 3 or len(set(l)) == 1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
def calc(a, b, c):
    return len(set([a, b , c])) == 2

if __name__ == '__main__':
    A, B, C = map(int, input().split())
    if calc(A, B, C):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
a = [int(s) for s in input().split()]

b = set(a)

ans = 'Yes' if len(b) == 2 else 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!python3

iim = lambda: map(int, input().rstrip().split())

def resolve():
    A, B, C = iim()

    ans = (A == B) + (B == C) + (C == A)

    if ans == 3 or ans == 0:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

s = []
s.append(a)
s.append(b)
s.append(c)
d = set(s)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
d = {}
for n in a:
    if n in d:
        d[n] += 1
    else:
        d[n] = 1

for v in d.values():
    if v == 2:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding:utf-8 -*-

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

if __name__=='__main__':
  main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = [ int(i) for i in input().split(" ") ]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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 A != B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
nums = set(input().split(" "))
if len(nums) == 1 or len(nums) == 3:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a=sorted([int(x) for x in input().split()])
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:
lis = list(map(int,input().split()))
if lis[0] == lis [1] and lis[0] != lis[2]:
    print("Yes")
elif lis[1] == lis[2] and lis[1] != lis[0]:
    print("Yes")
elif lis[0] == lis[2] and lis[2] != lis[1]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = list(map(int,input().split(" ")))
nfind = False
for i in num:
    if(num.count(i)==2):
        print("Yes")
        nfind = True
        break

if not(nfind):
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from bisect import *
from collections import *
from fractions import gcd
from math import factorial
from itertools import *
from heapq import *
import copy



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    l = len(set((A, B, C)))
    if l == 3 or l == 1:
        return NO
    return YES


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(solve(A, B, C))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math


def readints():
    return list(map(int, input().split()))


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

Submission status: Accepted

Solution code:
A_B_C = list(map(int,input().split()))
A = A_B_C[0]
B = A_B_C[1]
C = A_B_C[2]
ans = "No"
if A_B_C.count(A)==2:
    ans = "Yes"
elif A_B_C.count(B)==2:
    ans = "Yes"
print(ans)

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

Submission status: Accepted

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

if a == b == c:
  print('No')
elif a != b and b != c and a != c:
  print('No')
elif 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 - Poor
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:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import pdb
import sys
F = sys.stdin

a,b,c = map(int,F.readline().split())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
def check(s):
    numlist = Counter(map(int, s.split()))
    print('Yes' if len(dict(numlist)) == 2 else 'No')
    
s = input()
check(s)

Submission status: Accepted

Solution code:
d = input().split(" ")
a = int(d[0])
b = int(d[1])
c = int(d[2])
if a == b:
	if b != c:
		print("Yes")
	else:
		print("No")
else:
	if a == c:
		print("Yes")
	elif b == c:
		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 b!=c:
    print("Yes")
elif b==c and a!=b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if A == B:
    if B != C:
        kawaisou = True
    else:
        kawaisou = False
else:
    if A == C:
        kawaisou = True
    elif B == C:
        kawaisou = True
    else:
        kawaisou = False

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


def input():
    return sys.stdin.readline()[:-1]


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

Submission status: Accepted

Solution code:
A, B, C = [int(_) for _ in 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:
[a,b,c] = [int(x) for x in 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 = list(map(int, input().split()))

a.sort()

if (a[0] == a[1] and a[2] != a[1]) or (a[1] == a[2] and a[0] != a[1]):
  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 = 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')

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

Submission status: Accepted

Solution code:
A = [int(a) for a in input().split()]

A_set = list(set(A))

if(len(A) == len(A_set) or len(A_set) == 1):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
s = sorted([a,b,c])
if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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