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:
# -*- coding: utf-8 -*-

# Input
from sys import stdin
A, B, C = [int(x) for x in stdin.readline().rstrip().split()]

# Proccess
kawaisou = ""
k = 0

if A == B:
	if A == C:
		k += 0
	else:
		k += 1

if B == C:
	if B == A:
		k += 0
	else:
		k += 1

if C == A:
	if C == B:
		k += 0
	else:
		k += 1

if k == 1:
	kawaisou = "Yes"
else:
	kawaisou = "No"

# Output							
print(kawaisou)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

numbers.sort()

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

Submission status: Accepted

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

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:
nums = input().split()
check = 0
for num in nums:
  if nums.count(num) == 2:
    check = 1

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

Submission status: Accepted

Solution code:
l=list(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:
    if a==c:
        print("No")
    else:
        print("Yes")
elif a==c:
    print("Yes")
elif b==c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

# 整数の入力
#a = int(input())
# スペース区切りの文字列の入力
st = input().split()
st_list = []
st_list = [str(st) for st in st]

# スペース区切りの数値の入力
#a, b = map(int, input().split())

# 文字列の入力
#s = input()

# スペース区切りの文字列の入力
#a,b = map(input().split())

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

# 出力
#print(a,b)

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
A,B,C = (int(x) for x in input().split())
if A == B:
    if A == C:
        print('No')
    else:
        print('Yes')
else:
    if B == C:
        print('Yes')
    else:
        if A == C:
            print('Yes')
        else:
            print('No')

Submission status: Accepted

Solution code:
a = input()

a = a.split(" ")
for i in range(3):
    a[i] = int(a[i])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


def get_result(data):
    return 'Yes' if len(list(set(data))) == 2 else 'No'

if __name__ == '__main__':
    data = list(map(int, stdin.readline().split(' ')))
    result = get_result(data)
    print(result)

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

Submission status: Accepted

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

Submission status: Accepted

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

num = 0

if a == b:
    num += 1
if b == c:
    num += 1
if c == a:
    num += 1

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
pairs = 0
if (A==B):
    pairs += 1
if (B==C):
    pairs += 1
if (A==C):
    pairs += 1
if (pairs==1):
    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 == C 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(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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def contest(val):
    a_str, b_str, c_str = val.split(' ')

    a = int(a_str)
    b = int(b_str)
    c = int(c_str)

    if a == b & b == c:
        return 'No'
    elif a == b:
        return 'Yes'
    elif b == c:
        return 'Yes'
    elif a == c:
        return 'Yes'
    else:
        return 'No'


if __name__ == "__main__":
    val = input()

    print(contest(val))

Submission status: Accepted

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

Submission status: Accepted

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

ans = 'No'

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

arr = (A,B,C)
arr_set = set(arr)
arr_len = len(arr_set)

if arr_len == 3 or arr_len == 1:
  print("No")
elif arr_len == 2:
  print("Yes")

Submission status: Accepted

Solution code:
def Main(A,B,C):

  if A == B:
    if C!=A:
      print("Yes",end="")
    else:
      print("No",end="")
  elif A == C:
    if B!=A:
      print("Yes",end="")
    else :
      print("No",end="")
  elif B == C:
    if A!=B :
      print("Yes",end="")
    else:
      print("No",end="")
  else:
    print("No",end="")
A,B,C = [int(num) for num in input().split(' ')]
Main(A,B,C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = list(map(int, input().strip().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:
def solve(a: int, b: int, c: int) -> bool:
   if a == b and b != c:
       return "Yes"
   if a == c and c != b:
       return "Yes"
   if b == c and c != a:
       return "Yes"
   return "No"             


def main():
    a, b, c = [int(num) for num in input().split(' ')]
    print(solve(a, b, c))


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ii(): return int(input())
def si(): return input()
def mi(): return map(int,input().split())
def li(): return list(mi())

import math 

for i in range(1):
    a,b,c=mi()
    if a==b!=c or b==c!=a or c==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 a == c or b == c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    ans=[A,B,C]
    ans.sort()
    print(YES if max(ans.count(A),ans.count(B))==2 else NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())
l = [a, b, c]
counter = 0
if a == b:
  counter += 1
if b == c:
  counter += 1
if a == c:
  counter += 1
if counter == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

n=0

for i in range(0,2):
  if li[i+1] - li[i] ==0:
    n+=1
if li[2] - li[0] ==0:
  n+=1

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# coding: utf-8
from fractions import gcd 
from functools import reduce
import sys
sys.setrecursionlimit(200000000)
from inspect import currentframe


# my functions here!
#標準エラー出力
def printargs2err(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' : '+repr(arg) for arg in args),file=sys.stderr)
def debug(x):
    print(x,file=sys.stderr)
def printglobals():
    for (symbol, value) in globals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)
def printlocals():
    for (symbol, value) in locals().items():
        print('symbol="%s"、value=%s' % (symbol, value),file=sys.stderr)


#入力（後でいじる）
def pin(type=int):
    return map(type,input().split())
#どっかで最悪計算量の入力データを用意する関数を作ろう？
"""
愚直に操作を実装する
"""
#solution:
A,B,C=pin()
if A==B and B==C:
    print("No")
elif A==B or B==C or C==A:
    print("Yes")
else:
    print("No")
    
"""
N,K=pin()#KはAのうち2つを選んだとき積K番目の値 重複する値を含めるよ！
A=list(pin())
Aplus,Aminus=[],[]
zpm=[0]*3#0と負と正の数　これで数を減らして全探索ちゃうか
for num in A:
    if num==0:
        zpm[0]+=1
    elif num>0:
        zpm[1]+=1
        Aplus.append(num)
    else:
        zpm[-1]+=1
        Aminus.append(num)
#print(zpm)
zeros=zpm[0]*(N-zpm[0])+zpm[0]*(zpm[0]-1)//2 #0となにかの積
plus=(zpm[1]*(zpm[1]-1)+zpm[-1]*(zpm[-1]-1))//2#符号が同じものの積
minus=zpm[1]*zpm[-1]#違うものの積

pz=[zeros,plus,minus]
print(pz)
print((N*(N-1)//2)-sum(pz)) #0:網羅性があるよ
"""

#zpm_product=[,,]#今度は積がどうなるかやろう 
#print([["NA","YYMM"],["MMYY","AMBIGUOUS"]][cMMYY][cYYMM])

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

Submission status: Accepted

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

if len(sets) == 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,B,C = map(int, input().split())


if A==B & B==C & C==A:
    print('No')

elif A!=B & B!=C & C!=A:
    print('No')

else:
    print('Yes')

Submission status: Accepted

Solution code:

case = input()

A, B, C =[int(x) for x in case.split(' ')]
if (A == B and A != C) or(B == C and A != C) or (A == C and A != B):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:

# coding: utf-8


def main():
    numbers_list = list(map(int, input().split(' ')))

    if (len(numbers_list) - len(set(numbers_list))) == 1:
        print('Yes')
    else:
        print('No')

    return 0


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if A == B:
    if A != C:
        count += 1

if B == C:
        if B != A:
            count += 1

if A == C:
        if A != B:
            count += 1

if count >= 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    if A == B and B == C:
        print('No')
        return

    if A == B or B == C or A == C:
        print('Yes')
        return

    print('No')
    

resolve()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
 
r = 0
r += 1 if a == b else 0
r += 1 if a == c else 0
r += 1 if b == c else 0
 
if r == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n,m,l = map(int,input().split())
if (n != m) and (n != l ) and (m != l):
  print('No')
elif n == m:
  if n == l:
    print('No')
  else:
    print('Yes')
elif n == l:
  print('Yes')
elif m == l:
  print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007

#+++++
def iii(a,b,c):
	if a==b and a!= c:
		return True
	if b==c and b!=a:
		return True
	if c==a and c!=b:
		return True
	return False
	
	
def main():
	a, b , c = IN()
	ret = 'Yes' if iii(a,b,c) else 'No'
	print(ret)
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

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

if A == B and B == C :
	S = 'No'
if A != B and A != C and B != C :
	S = 'No'

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
#from collections import deque
#from math import sqrt, floor, ceil, log, log2, log10, pi, gcd, sin, cos, asin, tan


def ii(): return int(stdin.readline())


def fi(): return float(stdin.readline())


def mi(): return map(int, stdin.readline().split())


def fmi(): return map(float, stdin.readline().split())


def li(): return list(mi())


def lsi():
    x=list(stdin.readline())
    x.pop()
    return x


def si(): return stdin.readline()


def sieve(x):
    a=[True]*(x+1)
    sq=floor(sqrt(x))
    for i in range(3, sq+1, 2):
        if a[i]:
            for j in range(i*i, x+1, i):
                a[j]=False
    if x>1:
        p=[2]
    else:
        p=[]
    for i in range(3, x+1, 2):
        if a[i]:
            p.append(i)
    return p
def prime_factor(x):
    c=1
    i=0
    while p[i]*p[i]<=x:
        if not x%p[i]:
            c+=1
            while not x%p[i]:
                x//=p[i]
        i+=1
    if x>1:
        c+=1
    return c
res=['Yes', 'No']
#vowel={'a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'I', 'O', 'U', 'Y'}
#pow=[1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387904, 9223372036854775808]
############# CODE STARTS HERE #############
a=[0]*12
b=li()
f=1
for i in b:
    a[i]=1
if sum(a)==2:
    f=0
print(res[f])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
LIST = sorted(input().split(),reverse=True)

flag = 0
if LIST[0] == LIST[1]:
    flag += 1
if LIST[1] == LIST[2]:
    flag += 1

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans="No"
if data[0]==data[1]:
    if data[1]==data[2]:
        ans="No"
    elif data[1]!=data[2]:
        ans='Yes'
elif data[0]!=data[1]:
    if data[1]==data[2]:
        ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
arr = list(map(int, input().split()))
found = []
for n in arr:
  flag = True
  for f in found:
    if n == f:
      flag = False
  if flag:
    found.append(n)

print("Yes" if len(found) == 2 else "No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
A, B, C = map(int, stdin.readline().rstrip().split())
s = set([A,B,C])
if len(s)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = list(map(int,input().split()))
a = 0
for i in (1,2):
    if n[0] == n[i]:
        a += 1
if a == 1:
    ans = "Yes"
elif a == 2 or n[1] != n[2]:
    ans = "No"
else:
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
import sys
 
for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
  
if ((A - B) * (B - C) * (C - A) == 0) and (int(A!=B) + int(B!=C) + int(C!=A)):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:

def main():
    A, B, C = map(int, input().split())
    if A == B:
        if B==C:
            print("No")
        else:
            print('Yes')
    else:
        if B==C:
            print('Yes')
        else :
            if C==A:
                print("Yes")
            else :
                print("No")
main()

Submission status: Accepted

Solution code:
a,b,c = input().split()
d = 0
if a == b:
    if a != c:
        d +=1
if a == c:
    if b != c:
        d +=1
if c == b:
    if a != c:
        d +=1
if d>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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:
import sys

def main():
    
    # sys.stdin = open('input155a.txt')
    
    a, b, c = map(int, input().split())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

li.sort()
poor = False

if li[0] == li[1]:
    if li[1] != li[2]:
        poor = True
elif li[1] == li[2]:
  poor = True

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

Submission status: Accepted

Solution code:
#from math import sqrt
#from heapq import heappush, heappop
#from collections import deque

a, b, c = [int(v) for v in input().split()]

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

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

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

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:
num = [int(x) for x in input().split()]
if len(set(num))==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 and a!=c and b!=c:
  print("Yes")
elif b==c and b!=a and c!=a:
  print("Yes")
elif a==c and a!=b and c!=b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())

ans = 'No'

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import numpy as np
a,b,c=(int(x) for x in input().split())
ans="No"
if a==b:
    if b!=c:
        ans="Yes"
if a!=b:
    if a==c:
        ans="Yes"
    elif b==c:
        ans="Yes"
print(ans)

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
INPUTS = list(map(str, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

a = inputs[0]
b = inputs[1]
c = inputs[2]
if(a == b and b == c and c == a):
    print("No")
    exit(0)

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

Submission status: Accepted

Solution code:
import sys
[A, B, C] = map(int, input().split())
if (A != B and A!=C and B!=C):
    print('No')
    sys.stdout.flush
elif (A==B and B==C):
    print('No')
    sys.stdout.flush       
else:
    print('Yes')
    sys.stdout.flush