import  itertools

li = input().split()
if li[0]==li[1]==li[2]:
    print('No')
    exit()

p=itertools.permutations(li,2)

for i in p:
   if i[0] == i[1]:
        print('Yes')
        exit()
print('No')

 import  itertools itertools li = input().split() li input().split() ().split () input split if li[0]==li[1]==li[2]:
    print('No')
    exit() li[0]==li[1]==li[2] li[0]==li[1] li[0] li 0 li[1] li 1 li[2] li 2 print('No') print 'No' exit() exit p=itertools.permutations(li,2) p itertools.permutations(li,2) itertools.permutations itertools permutations li 2 for i in p:
   if i[0] == i[1]:
        print('Yes')
        exit() i p if i[0] == i[1]:
        print('Yes')
        exit() i[0] == i[1] i[0] i 0 i[1] i 1 print('Yes') print 'Yes' exit() exit print('No') print 'No' p=itertools.permutations(li,2) itertools.permutations(li,2) p li = input().split() input().split() li
import  itertools

li = input().split()
if li[0]==li[1]==li[2]:
    print('No')
    exit()

p=itertools.permutations(li,2)

for i in p:
   if i[0] == i[1]:
        print('Yes')
        exit()
print('No')


