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:
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def LI_(): return list(map(lambda x: int(x)-1, input().split()))
def II(): return int(input())
def IF(): return float(input())
def LS(): return list(map(list, input().split()))
def S(): return list(input().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#solve
def solve():
    a= LI()
    print("Yes" if len(set(a)) == 2 else "No")
    return


#main
if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

print("Yes" if len(ABC)-len(set(ABC)) == 1 else "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 A !=B:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import numpy as np
A, B, C = map(int, input().split())
#print(A, B, C)


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

Submission status: Accepted

Solution code:
import sys

def main():

    # sys.stdin = open('input155a.txt')

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

    answer = 'Yes' if check(a, b, c) else 'No'
    print(answer)

def check(a, b, c):

    for _ in range(3):
        a, b, c = b, c, a
        if a == b != c:
            return True

    return False


if __name__ == '__main__':
    main()

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()))
a = set(a)
if len(a) == 1 or len(a) == 3:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.readline
print('Yes' if len(set(list(map(int, readline().split())))) == 2 else 'No')

Submission status: Accepted

Solution code:
#標準入力から値を取得+Splitで分割して変数A,B,Cに登録
A, B, C = input().split(' ')
#「かわいそう」か否かを判定
if (A == B == C) or (A != B != C != A):
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
x = (1 if A==B else 0) + (1 if B==C else 0) + (1 if C==A else 0)
print("Yes" if x==1 else "No")

Submission status: Accepted

Solution code:
ans = set([int(i) for i in input().split()])

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

Submission status: Accepted

Solution code:
D = list(map(int, input().split()))
if len(set(D)) == 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 A != B:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a,b,c = input().split()
    if not a == b == c:
        if a == b:
            print('Yes')
        elif b == c:
            print('Yes')
        elif a == c:
            print('Yes')
        else:
            print('No')
    else:
        print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def solve():
    if a[0] == a[1] and a[0] != a[2]:
        return True
    if a[0] != a[1] and a[1] == a[2]:
        return True
    return False

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
def solve(a, b, c):
    return "Yes" if len(set([a,b,c])) == 2 else "No"

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = input().split(' ')
if len({ a, b, c }) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from collections import Counter;
c = Counter(input().split())
if c.most_common()[0][1] == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


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


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


def read_int():
    return int(input())


def read_str():
    return input()


def solve():
    A, B, C = read_int_list()
    if A == B == C:
      return 'No'
    if A == B or B == C or C == A:
      return 'Yes'
    return 'No'


def main():
    res = solve()
    print(res)


main()

Submission status: Accepted

Solution code:
# A - Poor
def main():
    A, B, C = map(int, input().split())
    is_poor = (A == B and A != C) or (A == C and A != B) or (B == C and A != B)
    print("Yes" if is_poor else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


line = input()
numbs = [int(v.strip()) for v in line.split()]


def is_equal(numb1, numb2):
    return numb1 == numb2

numb1, numb2, numb3 = numbs
res = sum([is_equal(numb1, numb2), is_equal(numb1, numb3), is_equal(numb2, numb3)])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 3つの数字を1行で空白を挟んで入力
# 2つの数字が同じならかわいそうなのでyes、3つが同じまたは全て異なる場合はno

def check(input_list):
    if(input_list.count(input_list[0]) == 2 or input_list.count(input_list[1]) == 2):
        return True
    else:
        return False

if __name__ == '__main__':
    input_list = input().split()
            
    if check(input_list):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

flg = 0

if a != b:
    flg = 1

if a != c:
    flg = 1

if b != c:
    flg = 1

if a != b and a !=c and b != c:
    flg = 0

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, b, c = map(int, input().split())

l = [a,b,c]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import collections
import itertools as it
import math
import numpy as np

# A = input()
# A = int(input())
# A = map(int, input().split())
# A = list(map(int, input().split()))
# A = [int(input()) for i in range(N)]
#
# c = collections.Counter()

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

l = [a,b,c]

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

Submission status: Accepted

Solution code:
from bisect import *
from collections import *
from itertools import *
import functools
import sys
import math
from decimal import *
from copy import *
from heapq import *
from fractions import *
getcontext().prec = 30
MAX = sys.maxsize
MAXN = 1000010
MOD = 10**9+7
spf = [i for i in range(MAXN)]
spf[0]=spf[1] = -1
def sieve():
    for i in range(2,MAXN,2):
        spf[i] = 2
    for i in range(3,int(MAXN**0.5)+1):
        if spf[i]==i:
            for j in range(i*i,MAXN,i):
                if spf[j]==j:
                    spf[j]=i
def fib(n,m):
    if n == 0:
        return [0, 1]
    else:
        a, b = fib(n // 2)
        c = ((a%m) * ((b%m) * 2 - (a%m)))%m
        d = ((a%m) * (a%m))%m + ((b)%m * (b)%m)%m
        if n % 2 == 0:
            return [c, d]
        else:
            return [d, c + d]

def charIN(x= ' '):
    return(sys.stdin.readline().strip().split(x))

def arrIN(x = ' '):
    return list(map(int,sys.stdin.readline().strip().split(x)))

def ncr(n,r):
    num=den=1
    for i in range(r):
        num = (num*(n-i))%MOD
        den = (den*(i+1))%MOD

    return (num*(pow(den,MOD-2,MOD)))%MOD

def flush():
    return sys.stdout.flush()

'''*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*'''
a = arrIN()
if len(set(a))==2:
    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 = [int(x) for x in input().split(" ")]

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

Submission status: Accepted

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

if (nums[0] == nums[1]) or (nums[1] == nums[2]) or (nums[2] == nums[0]):
    if nums[0] == nums[1] == nums[2]:
        print("No")
    else:
        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 sys
input = sys.stdin.readline

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:
#!/usr/bin/python3
# -*- coding:utf-8 -*-

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

if __name__=='__main__':
  main()

Submission status: Accepted

Solution code:
import sys
a, b, c = [int(i) for i in sys.stdin.readline().split()]
_set = {a, b, c}
if len(_set) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
print("Yes" if len({a,b,c})==2 else "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 a!=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()
print("YNeos"[sum((a==b,b==c,c==a))!=1::2])

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

Submission status: Accepted

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

Submission status: Accepted

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

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()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

A, B, C = MAP()
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!=c:
    print("Yes")
elif a==c!=b:
    print("Yes")
elif b==c!=a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

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:
from collections import Counter, deque, defaultdict
from functools import lru_cache

a,b,c=map(lambda x:int(x),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 == 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==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([int(i) for i in input().split()])) == 2 else print("No")

Submission status: Accepted

Solution code:
import sys
 
if __name__ == '__main__':
  args = input().split()
  ret="No"
  if ((args[0] == args[1] or args[0] == args[2] or args[1] == args[2]) and (args[0] != args[1] or args[1] != args[2])):
    ret="Yes"
    
  print(ret)

Submission status: Accepted

Solution code:
def main():
    a, b, c = 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")


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


if __name__ == "__main__":
    main1()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def I(): return int(input())
def MI(): return map(int, input().split())
def LMI(): return list(map(int, input().split()))


A, B, C = MI()
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 and b!=c) or (b==c and c!=a) or (c==a and a!=b) else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys;

Nums = input().split(' ');
Nums.sort();

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number = set(map(int, input().split()))
if len(number) == 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 numpy as np
 
stdin = open(0)
data = np.fromstring(stdin.read(), np.int32, sep=' ')
A,B,C = data

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = list(map(int, input().split()))
sABC = set(ABC)
print("Yes" if len(sABC) == 2 else "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')
elif a == b or b == c or c == a:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s,t,u = input().split()

if s == t == u:
    print("No")
elif (s != t)and(t != u)and(s != u):
	print("No")    
else:
    print("Yes")

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 = map(int,input().split())
if len(set(A)) == 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:
s=set(map(int,input().split()))
print('Yes' if len(s)==2 else '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
"""
data=list(map(int,input().split()))
data.sort()
A,B,C=data
if A==B and B!=C:
    print("Yes")
elif A!=B and B==C:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p = list(map(int, input().split()))
def map_all(es):
    return all([e == es[0] for e in es[1:]]) if es else False
def has_duplicates(seq):
    return len(seq) != len(set(seq))

if map_all(p):
    print('No')
else:
    if has_duplicates(p):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = set(map(int, input().split()))
if len(ABC) == 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( B == C ) 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())

ab = a == b
bc = b == c
ca = c == a

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
nums= input().split()


for i in range(len(nums)):
    nums[i] = int(nums[i])
    
nums.sort()


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

Submission status: Accepted

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

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