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

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

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

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

Solution (Python):


import sys



















def main():
    mod = 1000000007                  
    inf = float('inf')
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():  return int(input())
    def mi():  return map(int, input().split())
    def mi_0(): return map(lambda x: int(x)-1, input().split())
    def lmi(): return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():  return list(input())
    
    
    s = set(lmi())
    print('Yes') if len(s) == 2 else print('No')

if __name__ == "__main__":
    main()

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

Solution (Python):
A = input().split()
res = []
for i in A:
  if i not in res:
    res.append(i)

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

A, B, C = rl()

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

Solution (Python):
A,B,C=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')

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

Solution (Python):
n = [i for i in input().split()]

n = set(n)

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

Solution (Python):


def main():
    N = map(int, open(0).read().split())
    N = set(N)
    if len(N) == 2:
        print("Yes")
    else:
        print("No")



main()

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

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

Solution (Python):
def main():
    a,b,c = list(map(int,input().split()))

    ans = 'Yes'
    if a == b and a == c:
        ans = 'No'
    if a != b and b != c and a != c:
        ans = 'No'

    print(ans)


main()

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

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

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

Solution (Python):
abc = input().split()

print("Yes" if len(set(abc)) == 2 else "No")

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

Solution (Python):
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");

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

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

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

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

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

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

Solution (Python):
data = list(map(int, input().split()))

if len(list(set(data))) == 2:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10**6)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

a = set(na())

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

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

Solution (Python):
'''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
'''


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

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

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

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

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

Solution (Python):
print('YNeos'[len(set(input()[::2]))%2 ::2])

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

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

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

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

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

Solution (Python):
a = {int(i) for i in input().split()}
print('Yes') if len(a)==2 else print('No')

Solution (Python):

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

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

Solution (Python):
a,b,c = map(int,input().split())
ans="Yes"

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

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

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

Solution (Python):

import sys



class BufferedTokenizer:
    pass

def read_ints():
    return [int(token) for token in input().split()]

def read_tokens():
    return input().split()

def main():
    print("Yes" if len(set(read_ints())) == 2 else "No")

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
import collections
ABC = list(map(int, input().split()))
d = collections.Counter(ABC)
if len(d) == 2:
    print("Yes")
else:
    print("No")

Solution (Python):


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

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

Solution (Python):


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

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

Solution (Python):
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')
    exit()

print('No')

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def input2():
	return map(int,input().split())


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





a,b,c=input2()

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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n,m,l=map(int,input().split())
if (n==m and n!=l) or (n==l and n!=m) or (m==l and n!=m):
  print("Yes")
else:
  print("No")

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

L = LIST()
print("Yes" if len(set(L))==2 else "No")

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

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

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

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

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

Solution (Python):
def resolve():
  a=list(input().split())
  if len(set(a)) == 2:
    print("Yes")
  else:
    print("No")
resolve()

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

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

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

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

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

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

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    a, b, c = list(map(int, readline().split()))
    if a == b != c or a == c != b or b == c != a:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    solve()

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

Solution (Python):


import itertools

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

flag = 0
for i, j, k in itertools.permutations(degit, 3):
    if i == j:
        if j != k:
            flag = 1
    else:
        if j == k:
            flag = 1
    


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

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

Solution (Python):
a,b,c=map(int,input().split())
n=0
if a==b:
  n+=1
if b==c:
  n+=1
if c==a:
  n+=1
if n==1:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
arr = [int(i) for i in input().split()]
st = set(arr)
if len(st) == 2:
    print('Yes')
else:
    print("No")

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

else : 
	print('No')

Solution (Python):
x=set(input())
if len(x)==3: print('Yes')
else : print('No')

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

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

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

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

print('No')

Solution (Python):


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

Solution (Python):
slist = input().split()
sset = set(slist)

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

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

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

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

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

Solution (Python):
import sys
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

out=0
if A==B:
    out+=1
if B==C:
    out+=1
if A==C:
    out+=1

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

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

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

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

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

else:
    print('No')

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

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

Solution (Python):
A, B, C = input().split()
if A == B:
  if B != C:
    print("Yes")
  else:
    print("No")
  exit()

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

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

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

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

if (A-B)*(B-C)*(C-A)==0 and not (A-B)**2+(B-C)**2+(C-A)**2==0:
  print('Yes')
else:
  print('No')

Solution (Python):
triple = input().split()
triple.sort()
if (triple [0] == triple [2]) :
    print('No')
elif (triple[0] == triple [1] or triple[1] == triple [2]) :
    print('Yes')
else:
    print('No')

Solution (Python):
x = input()
list = x.split()

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

Solution (Python):
A,B,C=input().split()
a,b,c=int(A),int(B),int(C)

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

Solution (Python):
n = input().split()
for i in range (3) :
    n[i] = int(n[i])

a = sorted (n)

fl = False

if (a[0] == a[1] and a[1] != a[2]) :
    fl = True
if (a[0] != a[1] and a[1] == a[2]) :
    fl = True
print ('Yes' if fl else 'No')

Solution (Python):
n = list(map(int,input().split()))
n.sort()
a,b,c = n
flag = False
if a == b and c != a:
    flag = True
elif a == c and b != c:
    flag = True
elif b == c and a != b:
    flag = True
print ("Yes" if flag else "No")

Solution (Python):
a, b, c = list (map (int, input ().split ()))
k = a ^ b ^ c
print ("Yes" if ((k == a) + (k == b) + (k == c) == 1) else "No")

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):
a,b,c = map(int,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")

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

Solution (Python):
A,B,C = input().split()
s = A
t = B
u = C
if (s==t and s==u):
    print("No")
elif (s==t or t==u or s==u):
    print("Yes")
elif (s!=t or t!=u):
    print("No")

Solution (Python):
import numpy
A,B,C = input().split()
a = A
b = B
c = C
if (a==b and a==c):
    print("No")
elif (a==b or b==c or a==c):
    print("Yes")
elif (a!=b or b!=c):
    print("No")

Solution (Python):
x = list(map(int,input().split()))
a = x[0]
b = x[1]
c = x[2]

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

Solution (Python):
A,B,C=input().split()
a=int(A)
b=int(B)
c=int(C)
if a==b or b==c or a==c:
    if not(a==b and b==c):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Solution (Python):
x, y , z = [int(x) for x in input().split()]
if(x==y and y==z):
    print("No")
elif(x!=y  and x!=z and y!=z):
    print("No")
else:
    print("Yes")

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

Solution (Python):
A,B,C = input().split()
a = A
b = B
c = C
if (a==b and a==c):
    print("No")
elif (a==b or b==c or a==c):
    print("Yes")
elif (a!=b or b!=c):
    print("No")

Solution (Python):
listt = list(map(int,input().split(" ")))

sett = set(listt)
if(len(sett)== 2):
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):



if False:
    N=int(input())
    A=[int(i) for i in input().split()]
    ans=[(i,a) for i,a in enumerate(A)]
    ans.sort(key=lambda x: x[1],reverse=True)
    for i in range(N): print(ans[i][0]+1)


if False:
    N,P=map(int,input().split())
    A=[int(i) for i in input().split()]
    flag=True 
    for a in A:
        if a%2==1:
            flag=False
            break
    if flag:
        if P==0:
            print(2**N)
        else:
            print(0)
    else:
        print(2**(N-1))


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

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

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

if (A is B and B is C) or (A is not B and B is not C and C is not A):
    print("No")
else:
    print("Yes")

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

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

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

print(answer)

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

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

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

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

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

Solution (Python):
[A, B, C]= [int(i) for i in input().split()]
if (A==B) and (B==C):
    print('No')
elif (A==B) or (B==C) or (A==C):
    print('Yes')
else:
    print('No')

Solution (Python):
A, B, C = 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')

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

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

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

Solution (Python):

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

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

Solution (Python):
a,b,c=map(set,input().split())

print('Yes' if len(a|b|c)==2 else 'No')

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
import math
def print_ans(ar):
    """Test Case
    >>> print_ans([5, 7, 5])
    Yes
    >>> print_ans([4, 4, 4])
    No
    >>> print_ans([4, 9, 6])
    No
    >>> print_ans([3, 3, 4])
    Yes
    """
    print("Yes" if len(set(ar)) == 2 else "No")


if __name__ == '__main__':
    ar = list(map(int, input().rstrip().split()))
    print_ans(ar)

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

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

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

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

Solution (Python):
A= set(map(int, input().split()))

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

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

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

Solution (Python):
num = list(map(int, input().split()))

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

Solution (Python):
a,b,c=[int(i) for i in input().split()]
d={}
d[a]=1
d[b]=1
d[c]=1
val=list(d.values())
if len(val)==2:
  print('Yes')
else:
  print('No')

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

Solution (Python):
num_list = [int(s) for s in input().split()]
num_set = set(num_list)

ans = "Yes" if len(num_set) == 2 else "No"
print(ans)

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

Solution (Python):

A, B, C = map(int, input().split(" "))

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