peterverebics/CodeNet_Python_118 huggingface dataset:
a, b, c = map(int, input().split())

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

if a == b == c or a != b != c != a :
  print('No')
else:
  print('Yes')
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import pdb
import sys
F = sys.stdin

a,b,c = map(int,F.readline().split())

if a == b:
    if b == c:
        print('No')
        sys.exit()
    print('Yes')
    sys.exit()

if a == c or b == c:
    print('Yes')
    sys.exit()
print('No')
sys.exit()
A, B, C = map(int, input().split())

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

print(ans)
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")
a, b, c = sorted(map(int, input().split()))

if a == b == c:
    print('No')
elif a != b and b != c:
    print('No')
else:
    print('Yes')
# -*- coding: utf-8 -*-

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')
x = list(map(int,input().split()))
if len(set(x))== 2:
    print("Yes")
else:
    print("No")
abc = set(list(map(int, input().split())))
if len(abc) == 2:
  print("Yes")
else:
  print("No")
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')
# -*- coding: utf-8 -*-
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')
arr=input().split(" ")
a,b,c=arr

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")
a, b, c = map(int, input().split())
if a!=b and b!= c and c!=a:
    print("No")
elif a==b and b==c:
    print("No")
else:
    print("Yes")
a = list(map(int, input().split()))
if a[0] == a[1] and a[0] != a[2]:
  print("Yes")
elif a[0] != a[1] and a[1] == a[2]:
  print("Yes")
elif a[0] == a[2] and a[0] != a[1]:
  print("Yes")
else:
  print("No")
l=list(map(int,input().split()))
s=len(set(l))
if(s==2):
    print("Yes")
else:
    print("No")
s=set(map(int, input().split()))
if(len(s)==2):
    print("Yes")
else:
    print("No")
A = list(map(int,input().split()))
A.sort()
if (A[0] == A[1] and A[1] != A[2] )or(A[2] == A[1] and A[1] != A[0] ):
    print("Yes")
else:
    print("No")
inp_str = input()
a, b, c = [int(x) for x in inp_str.split()]
if (a == b or a == c or b == c) and not a == b == c:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())

s = set([a, b, c])
if (len(s) == 3 or len(s) == 1):
    print("No")
else:
    print("Yes")
#At coder 2020/2/16 A

# スペース区切りの数の入力
A,B,C= input().split()
#A, B = map(int,input().split())
#U=input()

if A==B:
    if A==C:
        U='No'
    else:
        U='Yes'
else:
    if A==C:
        U='Yes'
    else:        
        if B==C:
            U='Yes'
        else:
            U='No'

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

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")
a,b,c=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')
num = [int(x) for x in input().split()]
if len(set(num))==2:
  print("Yes")
else:
  print("No")
a = list(map(int,input().split()))
c = 0

for i in range(10):
    b = a.count(i)
    if b == 2:
        print("Yes")
        c = 1
        break

if c == 0:
    print("No")
L = input().split()
if len(set(L))==2:
  print('Yes')
else:
  print('No')
def kawaiso(a, b, c):
  if (a == b and b != c) or (b == c and c != a) or (c == a and a != b):
    return 'Yes'
  else:
    return 'No'
 
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
 
print(kawaiso(a, b, c))
a,b,c = map(int, input().split())

if len(set([a,b,c])) == 2:
    print("Yes")
else:
    print("No")
def poor(a,b,c):
  if a==b and b==c and c==a:
    return False
  if a!=b and b!=c and c!=a:
    return False
  return True

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

if poor(a,b,c):
  print("Yes")
else:
  print("No")
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')
a, b, c = input().split()
if a == b == c:
    print("No")
elif a == b or b == c or c == a:
    print("Yes")
else:
    print("No")
A,B,C=map(int,input().split())
ans = 0
if A==B:
  ans = ans+1
if B==C:
  ans=ans+1
if A==C:
  ans=ans+1
if ans==3 or ans==0:
  print("No")
else:
  print("Yes")
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")
a,b,c=input().split()

if a == b and b != c :
  print("Yes")
elif a==c and a != b:
  print("Yes")
elif b==c and b != a :
  print("Yes")
else:
  print("No")
a = set([int(x) for x in input().split()])

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


main()
def calc(a, b, c):
    return len(set([a, b , c])) == 2

if __name__ == '__main__':
    A, B, C = map(int, input().split())
    if calc(A, B, C):
        print('Yes')
    else:
        print('No')
# 200216 A

n = list(map(int,input().split()))
cnt = 0
for i in range(3):
    for j in range(i+1,3):
        if n[i] == n[j]:
            cnt = cnt + 1
            
if cnt == 1:
    print("Yes")
else:
    print("No")
def main():
    abc = input().split(" ")
    if len(set(abc)) == 2:
        ans = "Yes"
    else:
        ans = "No"

    print(ans)

if __name__ == '__main__':
    main()
W= [int(x) for x in input().split()]
print("Yes" if len(set(W)) ==2 else "No")
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")
a, b, c = map(int, input().split())
if len(list(set([a, b, c]))) == 2:
  print('Yes')
else:
  print('No')
a, b, c = input().split()
ans = "No"
if (a == b and a != c) or (a == c and a != b) or (b == c and a != b):
  ans  = "Yes"
print(ans)
A = list(map(int,input().split()))
if len(set(A)) == 2:
    print("Yes")
else:
    print("No")
numbers = list(map(int, input().split()))

count = 0
if(numbers[0] == numbers[1] or numbers[0] == numbers[2]):
    count += 1

if(numbers[1] == numbers[2]):
    count += 1


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

if len(A) == 1:
    print('No')
elif len(A) == 2:
    print('Yes')
else:
    print('No')
ls = sorted(list(map(int,input().split())))
if ls[0] == ls[1] and ls[0] != ls[2]:
    print('Yes')
elif ls[1] == ls[2] and ls[0] != ls[1]:
    print('Yes')
elif ls[0] == ls[2] and ls[0] != ls[1]:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
if ((a==b)&(b!=c))|((a==c)&(a!=b))|((b==c)&(a!=b)):
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())

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

if __name__ == '__main__':
    main()
a,b,c=map(int,input().split())

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

if len(set(abc)) == 2:
    print('Yes')
else:
    print('No')
ABC = list(map(int, input().split()))
sABC = set(ABC)
print("Yes" if len(sABC) == 2 else "No")
A, B, C = map(int, input().split())

list = [A,B,C]

a = set(list)

if(len(a) == 2):
    print('Yes')
else:
    print('No')
A , B , C  = map( int,input().split() )
X = [A,B,C]
if len( set( X) ) == 2:
    print( "Yes" )
else:
    print( "No" )
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")
*l, = map(int, input().split())
print("Yes" if len(set(l)) == 2 else "No")
if len(set(input().split()))==2: print('Yes')
else: print('No')
a = input().split()

s = set()
for i in a:
    s.add(i)

if len(s) == 1 or len(s) == 3:
    ans = "No"
else:
    ans = "Yes"

print(ans)
import sys
sys.setrecursionlimit(10**6)

def InMap(): return list(map(int, sys.stdin.readline().split(' ')))
def In(): return int(sys.stdin.readline())
def InS(): return sys.stdin.readline()

A, B, C = InMap()

if A == B:
    if B == C:
        print('No')
    else:
        print('Yes')
elif B == C:
    print('Yes')
elif A == C:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")
v = set(map(int, input().strip().split()))
print("Yes" if len(v) == 2 else "No")
a = map(int, input().split())
a = set(a)
if len(a) == 2:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
print('No' if a == b and b == c or a != b and a != c and b != c else 'Yes')
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")
number_1,number_2,number_3= map(int,input().split())
if number_1 == number_2 and  number_1 != number_3 :
      print ('Yes') 
elif  number_1 == number_3 and  number_1!= number_2 :
      print ('Yes')
elif  number_1 !=  number_2 and  number_2== number_3 :
      print ('Yes')
else :
    print ("No")
S = set(input().split())

if len(S) == 2:
    print("Yes")
else:
    print("No")
List = list(map(int,input().split()))
if List[0] == List[1] == List[2]:
    print("No")
elif List[0] == List[1] or List[1] == List[2] or List[2] == List[0]:
    print("Yes")
else:
    print("No")
L=set(map(int,input().split()))
print("Yes" if len(L) == 2 else "No")
x = len(set(input().split()))
print('Yes' if x == 2 else 'No')
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')
if len(set(input().split()))==2:
  print("Yes")
else:
  print("No")
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')
# スペース区切りの整数入力
A,B,C = map(int, input().split())

s = "No"
if A == B and A != C:
    s = "Yes"
if A == C and A != B:
    s = "Yes"
if B == C and B != A:
    s = "Yes"
print(s)
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')
import os, sys, re, math

(A, B, C) = [int(n) for n in input().split()]

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

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

if len(set(a)) == 2:
  print('Yes')
else:
  print('No')
#5 7 5
#4 4 4
#4 9 6
#3 3 4
a, b, c = map(int, input().split())

s = {a, b, c}

if len(s) == 2:
    print('Yes')
else:
    print('No')
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

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

main()
import sys
l = len(set(map(int, sys.stdin.readline().split())))
if l == 2:
  print('Yes')
else:
  print('No')
A, B, C = (int(abc) for abc in 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")
a=list(map(int,input().split()))
a.sort()
if a[0]==a[1]!=a[2] or a[0]!=a[1]==a[2]:
    print('Yes')
else:
    print('No')
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')
a, b, c = map(int, input().split())

if a == b != c or b == c != a or a == c != b :
    print("Yes")
else :
    print("No")
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")
def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return
main()
import sys
readline = sys.stdin.readline

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

a = set([A, B, C])

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

print('Yes' if len(st) == 2 else 'No')
from sys import stdin, stdout

x = list(map(int, stdin.readline().split())) 
y = [x[0]-x[1], x[1]-x[2], x[2]-x[0]]
count = 0
for i in range(3):
  if y[i] == 0:
    count += 1

if count == 1:
  stdout.write("Yes")
else:
  stdout.write("No")
s = input().split()
if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]):
  print("Yes")
else:
  print("No")
a, b, c = list(map(int, input().split()))

if a == b and b != c:
    print("Yes")
elif b == c and a != b:
    print("Yes")
elif a == c and a != b:
    print("Yes")
else:
    print("No")
a, b, c = list(map(int, input().split()))
if a == b != c or a != b == c or a == c != b:
    print("Yes")
else:
    print("No")
a = list(map(int, input().split()))
if ((a[0] == a[1]) or (a[0] == a[2]) or (a[2] == a[1])):
  if ((a[0] == a[1]) and (a[2] == a[1])):
    print("No")
  else:
    print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
print('No' if a != b and b != c and c != a or a == b and b == c else 'Yes')
a,b,c = map(int,input().split())
if a==b==c:
    ans="No"
else:
    if a==b or a==c or b==c:
        ans="Yes"
    else:
        ans="No"
print(ans)
s = set(input().split())

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

print('Yes') if len({A, B, C}) == 2 else print('No')
ABC = list(map(int, input().split()))
if len(ABC) - 1 == len(set(ABC)):
    print('Yes')
else:
    print('No')
A,B,C=input().split()

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

if (A==B!=C) or (B==C!=A) or (C==A!=B):
	print('Yes')
else:
	print('No')
li=list(map(int,input().split()))
for i in li:
  if li.count(i)==2:
    print("Yes")
    break
else:
  print("No")
a, b, c = map(int, input().split())

if len({a, b, c}) == 2:
    print('Yes')
else:
    print('No')
a, b, c = map(int, input().split())
if a == b == c:
    print("No")
    exit()
if a == b or b == c or a == c:
    print("Yes")
else:
    print("No")
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')
# -*- coding: utf-8 -*-
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")
"""

tmp = [a, b, c]
if len(set(tmp)) == 2:
    print("Yes")
else:
    print("No")
# coding: utf-8
# submission # - User: herp_sy
# https://atcoder.jp/contests/
#
# lang: Python3 (3.4.3)

import math
import statistics
import numpy as np
import queue

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

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

if (a == b and a != c) or (a == c and a != b) or (b == c and a != c):
    print("Yes")
else:
    print("No")
#!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

ABC = list(map(int, input().split()))
if len(set(ABC)) == 2:
    print("Yes")
else:
    print("No")
a,b,c = map(str,input().split())
if a==b==c:
    print("No")
elif a==b or b==c or c==a:
    print("Yes")
else:
    print("No")
a=list(map(int,input().split()))

d=set(a)

if len(d)==2:
    print("Yes")
else:
    print("No")
A,B,C = map(int,input().split())
if (A==B and A!=C) or (A==C and B!=A) or (B==C and A!=B):
    print("Yes")
else:
    print("No")
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")
import sys
sys.setrecursionlimit(10 ** 6)
MOD = 10**9+7
 
def input():
    return sys.stdin.readline()[:-1]
 
def main():
    l = list(map(int, input().split()))
    if len(set(l)) == 2:
        print("Yes")
    else:
        print('No')
 
 
if __name__ == "__main__":
    main()
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")
a=list(map(int,input().split()))
a.sort()
if a[0]==a[1]==a[2]:
  print('No')
  exit()
print('Yes' if (a[0]==a[1] or a[1]==a[2]) else 'No')
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')
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')
def main():
    a_list = list(map(int, input().split()))
    a_list.sort()

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


if __name__ == '__main__':
    main()
import sys

l = sys.stdin.readline().strip().split(' ')

m = {}
for c in l:
    if not c in m:
        m[c] = 0
    m[c] += 1
for k, v in m.items():
    if v == 2:
        print "Yes"
        break
else:
    print "No"
a, b, c = map(int, input().split())
print('Yes' if a == b != c or a == c != b  or c == b != a else 'No')
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')
aa=list(map(int,input().split()))
a=aa[0]
b=aa[1]
c=aa[2]
if a==b and a==c:
    print("No")
elif a==b:
    print("Yes")
elif a==c:
    print("Yes")
elif b==c:
    print("Yes")
else:
    print("No")
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')
A, B, C = map(int,input().split())
if A==B or B==C or A == C:
  if A==B==C:
    print("No")
  else:
    print("Yes")
else:
  print("No")
A,B,C = map(int,input().split())
if (A!=B and A!=C and B!=C) or (A==B and B==C):
  print('No')
else:
  print('Yes')
s = set()
a,b,c = input().split()
s.add(a)
s.add(b)
s.add(c)
if len(s) == 2:
	print("Yes")
else:
	print("No")
# A - Poor
a,b,c=list(map(int,input().split()))
s=set([a,b,c])
if len(s)==2:
    print("Yes")
else:
    print("No")
#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


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


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No")


main()
ABC = list(input().split())
print('Yes' if len(set(ABC)) == 2 else 'No')
def resolve():
    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')
resolve()
abc = list(map(int, input().split()))
print("Yes") if len(set(abc)) == 2 else print("No")
A, B, C = map(int, input().split())

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

if A != B and A != C and B !=C:
    print("No")
else:
    print("No" if A == B and B == C else "Yes")
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')
a, b, c = map(int, input().split())
if len(set([a, b, c])) == 2:
    print('Yes')
else:
    print('No')
t=[int(i) for i in input().split()]
if(len(set(t))==2): print("Yes")
else: print("No")
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)
a, b, c = map(int, input().split())
if len(set([a, b, c])) == 2:
    print("Yes")
else:
    print("No")
A,B,C=map(int, input().split())
if A==B and B==C :
    print('No')
elif A!=B and B!=C and A!=C:
    print('No')
else:
    print('Yes')
def solve():
    A, B, C = map(int, input().split())
    isPoor = False
    
    if A == B and A != C:
        isPoor = True
    
    if A == C and A != B:
        isPoor = True
    
    if B == C and B != A:
        isPoor = True
    
    if isPoor:
        print('Yes')
    else:
        print('No')

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

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

if a == 2 or b == 2 or c == 2:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

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