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

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

Submission status: Accepted

Solution code:
l = input().split()
l = sorted(l)

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

Submission status: Accepted

Solution code:
def equ(a,b):
  return 1*(a==b)
a,b,c = map(int,input().split())
ans = equ(a,b)+equ(b,c) +equ(c,a)
print('Yes' if ans ==1 else 'No')

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
if i[0]==i[1] and i[0]!=i[2]:
    print('Yes')
elif i[0]==i[2] and i[0]!=i[1]:
    print('Yes')
elif i[1]==i[2] and i[0]!=i[1]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

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

#print(a, b, c)
ab = a == b
ac = a == c
bc = b == c

if ab and bc:
  print('No')
  sys.exit()

if not ab and not ac and not bc:
  print('No')
  sys.exit()

print('Yes')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
line = input('')
A = line.split(' ')[0]
B = line.split(' ')[1]
C = line.split(' ')[2]

cnt_a = [A,B,C].count(A)
cnt_b = [A,B,C].count(B)
cnt_c = [A,B,C].count(C)

if cnt_a == 3:
  print("No")
elif cnt_a == 2 or cnt_b == 2 or cnt_c == 2:
  print("Yes")
else:
  print('No')

Submission status: Accepted

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

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())
samecount = 0
if a == b:
    samecount = samecount + 1
if a == c:
    samecount = samecount + 1
if b == c:
    samecount = samecount + 1

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
A = a[0]
B = a[1]
C = a[2]

if (A == B == C) or (A is not B and B is not C and C is not 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 a == c) and (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())

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

else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]
C = i[2]
if 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:
str = input()
a = str.split()

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

Submission status: Accepted

Solution code:
a=input().split()
ans='No'
if a[0] == a[1] and not a[2] == a[0] :
	ans = 'Yes'
elif a[0] == a[2] and not a[1] == a[0] :
	ans = 'Yes'
elif a[2] == a[1] and not a[2] == a[0] :
	ans = 'Yes'
print(ans)

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):
    grp = {A, B, C}
    if len(grp) == 2:
        print(YES)
    else:
        print(NO)
    return



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
    solve(A, B, C)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8

line = input().split(" ")
if line[0] == line[1]:
    if line[0] == line[2]:
        print("No")
    else:
        print("Yes")
elif line[0] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
elif line[1] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

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

t = 0
if data[0] == data[1]:
    t+=1
if data[0] == data[2]:
    t+=1
if data[1] == data[2]:
    t+=1

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

Submission status: Accepted

Solution code:
# A equals to B, A not equals to C
# A not equals to B, A equals to C
# A not equals to B and C, B equals to C
def kawaiso(A,B,C):
  YES_CODE = "Yes"
  NO_CODE = "No"

  if A == B and A != C:
      return YES_CODE 
  
  if A != B and A == C:
      return YES_CODE 
  
  if B == C and A != C:
      return YES_CODE 
  
  return NO_CODE 

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort()
count = 0
for i in range(len(a)-1):
  if a[i] == a[i+1]:
    count += 1
if count == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def poor(arr):
    if len(set(arr)) == 2:
        return 'Yes'
    else:
        return 'No'

if __name__ == "__main__":
    arr = [int(s) for s in list(input().split())]
    print(poor(arr))

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

Submission status: Accepted

Solution code:
s = input().split()
if (s[0]==s[1] or s[0]==s[2] or s[1]==s[2]) and not(s[0]==s[1] and s[1]==s[2]):
  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:
#coding utf-8

def main():
    question_a()

def question_a():
    abc = list(map(int,input().split()))
    flg = False
    if abc[0] == abc[1] or abc[0] == abc[2]:
        if abc[1] != abc[2]:
            print("Yes")
            flg = True
    elif abc[1] == abc[2]:
        if abc[0] != abc[1]:
            print("Yes")
            flg = True

    if flg == False:
        print("No")

main()

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:
n = input().split()
n= [int(i) for i in n]
n.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]
if nums[0] == nums[1]:
    if nums[1]  == nums[2]:
        print("No")
    else:
        print("Yes")
else:
    if nums [1] == nums[2]:
        print("Yes")
    else:
        if nums[2] == nums[0]:
            print("Yes")
        else:
            print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=[int(i) for i in input().split()]
if A == B and A == 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())
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:
import sys
li = list(map(int,input().split()))
li.sort()
if(str(li[0]) == str(li[1]) == str(li[2])):
  print("No")
  sys.exit()
if(str(li[0]) != str(li[1]) != str(li[2])):
  print("No")
  sys.exit()
for i in range(3):
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
A=list(map(int,input().split()))
if A[0]==A[1]==A[2]:
    print('No')
elif A[0]==A[1]:
    print('Yes')
elif A[0]==A[2]:
    print('Yes')
elif A[1]==A[2]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import collections

mittsu = input()
mittsulist = mittsu.split()

kawaisou_ck = str(collections.Counter(mittsulist).values())
result = "No"
if kawaisou_ck == "dict_values([1, 2])" or kawaisou_ck == "dict_values([2, 1])":
  result = "Yes"
  
print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

cor = 0
mis = 0
for i in range(1,3):
	if ABC[0] ==ABC[i]:
		cor += 1
	if ABC[0] !=ABC[i]:
		mis += 1

if mis == 2:
	if ABC[1] == ABC[2]:
		print("Yes")
	else:
		print("No")

elif cor == 1 and mis == 1:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def is_kawaisou(a, b, c):
    if a == b and a == c:
        return 'No'
    if a == b or b == c or a == c:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':
    a, b, c = map(int, input().split())
    print(is_kawaisou(a, b, c))

Submission status: Accepted

Solution code:
lis = list(input().split())
a=lis.count(lis[0])
b=lis.count(lis[1])
c=lis.count(lis[2])
if a+b+c == 5:
    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:
numbers = map(int, input().split())
print("Yes") if len(set(numbers)) == 2 else print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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):
    if A == B and B == C :
        return NO
    isPoor = A==B or B==C or A==C
    return YES if isPoor else NO


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

if len(X)==1:
    print("No")
elif len(X)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = list(int(i) for i in input().split()) 
ans.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = input().split()
intlist = [int(s) for s in abc]
a,b,c = intlist[0],intlist[1],intlist[2]
if (a == b and a != c) | (a == c and a != b) | (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) 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:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 16 20:59:44 2020

@author: W_Indicate
"""

A, B, C = (int(x) for x in 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:
dataList = input().split(" ")

if len(set(dataList)) == 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:
input_list = list(map(int, input().split()))
for i in range(len(input_list)):
  strang = 0
  for j in input_list:
    if input_list[i] == j:
      strang += 1
  if strang == len(input_list):
    print("No")
    break
  if strang == len(input_list) - 1:
    print("Yes")
    break
if strang == 1:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

mod_list = set(input_line)
if len(mod_list) == 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 = input().split(' ')
l = []
l.append(a)
l.append(b)
l.append(c)
l = set(l)
n=len(l)
if n == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

ABC = input().split()

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

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

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

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

if b1 == 2:
    print('Yes')
    exit()
 
print('No')

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

Submission status: Accepted

Solution code:
print(['No','Yes'][len(set(map(int,input().split())))==2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    if (N[0] == N[1]) and (N[1] == N[2]) and N[2] == N[0]:
        return 'No'

    if (N[0] != N[1]) and (N[1] != N[2]) and (N[0] != N[2]):
        return 'No'

    return 'Yes'


print(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 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 A != 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 = [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split()]
a.sort()
if a[0] == a[1] == a[2]: print("No")
elif a[0] == a[1] or a[1] == 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 == c or b != 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('No')
    else:print('Yes')
elif A == C:
    print('Yes')
elif B == C:
    print('Yes')
else: print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    N, M, L = map(int, input().split())
    ans = 'No'
    
    if N == M and M == L:
        return ans
    
    if N == M or M == L or L == N:
        ans = 'Yes'
        
    return ans

print(solve())

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

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

Submission status: Accepted

Solution code:
set1 = set(map(str, input().split()))

if bool(len(set1) == 3) or bool(len(set1) == 1):
    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 A == C or B == C:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
li=[int(e) for e in input().split(' ')]
si=set(li)
if len(si)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = list(map(int , input().split()))
if A[0] == A[1] and A[0] != A[2]:
    print('Yes')
elif A[0] == A[2] and A[0] != A[1]:
    print('Yes')
elif A[1] == A[2] and A[1] != A[0]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if len(A) == 1:
    print('No')
elif len(A) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y, z = input().split(" ")
a = int(x)
b = int(y)
c = int(z)
poor = False
if a == b == c:
    print('No')
else:
    if a == b:
        poor = not poor

    if a == c:
        poor = not poor

    if b == c:
        poor = not poor

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

Submission status: Accepted

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

s = list(set(l))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if(A == B):
    count += 1
if(A == C or B == C):
    count += 1
if(count == 1):
    print('Yes')
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A, B, C = map(int, input().split())
D = set([A, B, C])
set_len = len(D)
if set_len == 3 or set_len == 1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
N =[int(i) for i in input().split(" ")]
count=0
for j in range(len(N)-1):
    for k in range(j+1,len(N)):
        if N[j]==N[k]:
            count += 1
if count==1:
    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[0]!=a[2]:
  print('Yes')
elif a[1]==a[2] and a[0]!=a[2]:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
num = [x for x in input().split()]
ans = 0
if num[0] == num[1]:
  ans = ans + 1
if num[0] == num[2]:
  ans = ans + 1
if num[1] == num[2]:
  ans = ans + 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = str(input()).split(' ');
    cnt = []
    for n1 in s:
        cnt.append(0)
        for n2 in s:
            if n1 == n2:
                cnt[-1] += 1
#    print(cnt)
    for i in cnt[:-1]:
        if i == 2:
            print('Yes')
            break
    else:
        print('No')


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
count=0
if a[0]==a[1]:
  count=count+1
if a[0]==a[2]:
  count=count+1
if a[1]==a[2]:
  count=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:
    if a==c:
        print('No')
        exit()
    else:
        print('Yes')
        exit()
if b==c:
    if b==a:
        print('No')
        exit()
    else:
        print('Yes')
        exit()
if c==a:
    if c==b:
        print('No')
        exit()
    else:
        print('Yes')
        exit()
else:
    print('No')
    exit()