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:
n = input()
(a,b,c) = n.split()
y='Yes'
d='No'
if a in (b, c) and b is not c:
    print(y)
elif b in (a, c) and a is not c:
    print(y)
else:
    print(d)

Submission status: Accepted

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

Submission status: Accepted

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

print("Yes" if(count == 1) else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import itertools
import fractions
def main():
  L = list(map(int,input().split()))
  l = set(L)
  for a in l:
    if L.count(a) == 2:
      print('Yes')
      exit()
  print('No')
  
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 'Yes'
if A == B and B == C:
    ans = 'No'
elif A != B and B != C and C != A:
    ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

if __name__ ==  '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
x = list(map(int, input().split()))

sameNum = 0
diffNum = 0

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

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

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

s = set([a, b, c])
if (len(s) == 3 or len(s) == 1):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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 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:
ary = input().split(" ")
if len(set(ary)) == 2 : 
	print("Yes")
else : 
	print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

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


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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
s = input().split()
if s[0]==s[1] and s[0]!=s[2]:
    print('Yes')
elif s[0]==s[2] and s[0]!=s[1]:
    print('Yes')
elif s[2]==s[1] and s[0]!=s[2]:
    print('Yes')
else:
    print('No')

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = len(set(input().rstrip().split()))
if n == 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 == c and a!= b or b == c and b != a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

if num == 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("No")
  else:
    print("Yes")
else:
  if A==C:
    print("Yes")
  elif C==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 B==C and A!=B 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)&(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:
nums = input().split()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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=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 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:
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:
a = list(map(int, input().split()))
cl = set(a)

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

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
print("Yes") if len(set(abc)) == 2 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:
'''
st=set(map(int, input().split()))

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 入力の取得(空白を除く)
s = list(input().split())

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

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

Submission status: Accepted

Solution code:
# 入力の取得(空白を除く)
s = list(input().split())

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

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

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(str , input().split())

ret = "No"

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

print(ret)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a_uniquie = set(i)
if len(a_uniquie) == 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:
n = list(map(int,input().strip().split()))

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 初期入力
a,b,c = (int(x) for x in input().split(" "))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    
    # for _ in range(ii()):
    
    a=list(map(int,input().split()))
    if(len(set(a))==2):
        print('Yes')
    else:
        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 (c == a)) 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 == C:
   print("No")
   exit()
if A == B:
  print("Yes")
  exit()
if B == C:
  print("Yes")
  exit()
if A == C:
  print("Yes")
  exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if (x == y and x != z) or (x == z and x != y) or (y == z and x != y):
  print("Yes")
else:
  print("No")

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:
# coding: utf-8
# Your code here!
x,y,z = map(int, input().split())
n = 0
if x == y:
    n += 1
if y == z:
    n += 1
if z == x:
    n += 1
if n == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A = set([int(i) for i in input().split()])
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:
        return "Yes"
    elif A == C and A != B:
        return "Yes"
    elif B == C and B != A:
        return "Yes"
    else:
        return "No"
print(main())

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

check = 0

if a == b and a != c :
  check = 1
if b == c and a != c :
  check = 1
if c == a and a != b :
  check = 1

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 200216 A

n = list(map(int,input().split()))
cnt = 0
for i in range(3):
    for j in range(i+1,3):
        if n[i] == n[j]:
            cnt = cnt + 1
            
if cnt == 1:
    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==A 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:
nums = set(map(int, input().split()))

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

Submission status: Accepted

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

data = list(set(data))

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

Submission status: Accepted

Solution code:
data = input().split()
 
a = int(data[0])
b = int(data[1])
c = int(data[2])
 
if a == b != c or a != b == c or a == c != b:
  ans = "Yes"
else:
  ans = "No"
  
print(ans)

Submission status: Accepted

Solution code:
#155_A
s = set(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 and A == 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 = [int(x) for x in input().split()]
print('No' if A == B and B == C or A != B and A != C and B != C else 'Yes')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ans = 0
if a == b:
    ans += 1
if c == b:
    ans += 1
if a == c:
    ans += 1

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

Submission status: Accepted

Solution code:
x = len(set(input().split()))
# setは重複した数を取り除き、要素の長さが2なら重複したものが1つあるとわかる
if x == 2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c=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 = list(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(int(i) for i in input().split())
if len(A) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if len(abc) == 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 and A != C :
	answer = "Yes"
elif A == C and A != B :
	answer = "Yes"
    
elif B == C and B != A :
	answer = "Yes"
else:
	answer = "No"
 
print(answer)

Submission status: Accepted

Solution code:
from sys import stdin

A, B, C = stdin.readline().rstrip().split()

if A == B and A != C:
    print('Yes')
    exit()

if A == C and A != B:
    print('Yes')
    exit()

if B == C and A != C:
    print('Yes')
    exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number_1,number_2,number_3= map(int,input().split())
if number_1 == number_2 and  number_1 != number_3 :
      print ('Yes') 
elif  number_1 == number_3 and  number_1!= number_2 :
      print ('Yes')
elif  number_1 !=  number_2 and  number_2== number_3 :
      print ('Yes')
else :
    print ("No")

Submission status: Accepted

Solution code:
x=input()
y=x.split()

if y[0] == y[1] :
    if y[0] == y[2]:
        print("No")
    else:
        print("Yes")
elif y[0] == y[2] :
    print("Yes")
elif y[2] == y[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("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 len(set([a,b,c]))==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import os

def main():
	num = list(map(int, input().split()))	
	if num[0] == num[1] or num[0] == num[2]:
		if num[1] == num[2]:
			print("No")
		else:
			print("Yes")
	else:
		if num[1] == num[2]:
			print("Yes")
		else:
			print("No")

if __name__ == "__main__":
	main()

Submission status: Accepted

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

lis = set({a,b,c})
if(len(lis)==2):
    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!=B and B==C) or (A==C and B!=C):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
l = set(input().split())
if len(l) == 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=input()
b=a[2]
c=a[4]
a=a[0]
if(a==b and a == c):
  print("No")
elif(a != b and b == c):
  print("Yes")
elif(a != b and a == c):
  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())
ans="Yes"

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

flag = False

if a[0] == a[1] and a[0] != a[2]:
    flag = True

if a[0] == a[2] and a[0] != a[1]:
    flag = True

if a[1] == a[2] and a[1] != a[0]:
    flag = True

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

Submission status: Accepted

Solution code:
A = input()
if A[0] != A[2] == A[4] or A[2] != A[4] == A[0] or A[4] != A[0] == A[2]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

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:
s = input().split()
a = int(s[0])
b = int(s[1])
c = int(s[2])

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

print("No")

Submission status: Accepted

Solution code:
b=input()
(n,m,l)=b.split(" ")
l=[n,m,l]
l1=set(l)
if len(l1)==2:
    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 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) or (A==C and A!=B) or (B==C and B!=A):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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