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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = set(map(int, readline().split()))

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

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

Submission status: Accepted

Solution code:
x,y,z = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# coding: utf-8
# Your code here!
A=set(map(int,input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
a=list(map(int,input().split()))
dic=Counter(a)
for i in dic.values():
    if i==2:
        print("Yes")
        exit()
print("No")

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:
  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:
X = list(map(int,input().split()))
for i in [0,1]:
    if X.count(X[i]) == 2:
        print('Yes')
        exit()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
ns = list(map(int, input().split()))
x = 0
for i in ns:
	for j in range(3):
		if ns[j] == i:
			x += 1
o = 'Yes' if x == 5 else 'No'
print(o)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x=list((int(x) for x in input().split()))
if(len(set(x))==2):
    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:
def main():
    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')
        
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
l = sorted([int(v) for v in input().rstrip().split()])
r = 'No'
if (l[0] == l[1] and l[0] != l[2]) or (l[1] == l[2] and l[0] != l[1]):
	r = 'Yes'

print(r)

Submission status: Accepted

Solution code:
def main():

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(10):
  if a.count(i) == 2:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

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

a = A.count(A[0])
b = A.count(A[1])
c = A.count(A[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

if len(set(x))==2:
    kotae='Yes'
else:
    kotae='No'

print(kotae)

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
if(a==b)+(b==c)+(c==a)==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("Yes")
    else:
        print("No")
elif a == c:
    print("Yes")
elif b == c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from collections import Counter
abc = Counter(list(map(int, input().split()))).most_common()
if len(abc) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = list(map(int,input().split()))
if len(n) == len(set(n)):
    print("No")
    
elif len(set(n)) == 1:
    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:
a, b, c = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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


def main():
    solve()


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))
 
a, b, c = inm()
ans = False
if a == b and b != c:
    ans = True
if a == c and c != b:
    ans = True
if b == c and c != a:
    ans = True
print("Yes" if ans else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
ABC = input()
ABC = ABC.replace(" ", "")
if ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = list(map(int,input().strip().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin 

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

if a == b:
  cnt += 1
if a == c:
  cnt += 1
if c == b:
  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 or B==C!=A 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 or b==c or c==a:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

l=set(a)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    L = list(map(int, input().split()))
    print("Yes" if len(L)-1 == len(set(L)) else "No")

if '__main__' == __name__:
    resolve()

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:
import sys
print('Yes' if len(frozenset(sys.stdin.readline().split())) == 2 else 'No')

Submission status: Accepted

Solution code:
S = input().split()
for i in range(-1, 2):
    if S[i-1] == S[i] and S[i] != S[i+1]:
        print("Yes")
        exit()
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=list(map(int,input().split()))
t=0
for i in range(1,10):
    s=0
    s=x.count(i)
    t+=s
    if s==2:
        print("Yes")
        break
    if t==3:
        print("No")
        break

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

print("Yes" if len(set({a,b,c})) == 2 else "No")

Submission status: Accepted

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

t = [a,b,c]
t.sort()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys


def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 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 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:
print("Yes" if len(set(map(int,input().split())))==2 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

if A==B:
    if B==C:
        flg=False
    else:
        flg=True
elif B==C:
    flg=True
elif A==C:
    flg=True
else:
    flg=False

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, bisect, math, itertools, string, queue, copy
import numpy as np
import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
from fractions import gcd
input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

a,b,c = inpm()

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

ans = 'No'
if cnt == 1:
    ans = 'Yes'

print(ans)

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)]


def main():

    sys.setrecursionlimit(10 ** 6)

    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(f'{solve(A, B, C)}')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

def main():

    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:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

print('Yes') if len({A, B, C}) == 2 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=list(map(int,input().split()))
print("NYoe s"[len(set(a))==2::2])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = list(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 and a!=c:
    ans="Yes"

elif a==c and a!=b:
    ans="Yes"

elif b==c and b!=a:
    ans="Yes"

else:
    ans="No"


print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))


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

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))
start_time = time.perf_counter()
# ------------------------------

A = inpl()
A.sort()
if A[0]!=A[2]:
    if A[0]==A[1]:
        print('Yes')
        sys.exit()
    if A[1]==A[2]:
        print('Yes')
        sys.exit()
print('No')


# -----------------------------
end_time = time.perf_counter()
print('time:', end_time-start_time, file=sys.stderr)

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