import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))
start_time = time.perf_counter()
# ------------------------------

A = inpl()
A.sort()
if A[0]!=A[2]:
    if A[0]==A[1]:
        print('Yes')
        sys.exit()
    if A[1]==A[2]:
        print('Yes')
        sys.exit()
print('No')


# -----------------------------
end_time = time.perf_counter()
print('time:', end_time-start_time, file=sys.stderr) import sys sys read = sys.stdin.readline read sys.stdin.readline sys.stdin sys stdin readline import time time import math math import itertools as it itertools def inp():
    return int(input()) inp return int(input()) int(input()) int input() input def inpl():
    return list(map(int, input().split())) inpl return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split start_time = time.perf_counter() start_time time.perf_counter() time.perf_counter time perf_counter A = inpl() A inpl() inpl A.sort() A.sort A sort if A[0]!=A[2]:
    if A[0]==A[1]:
        print('Yes')
        sys.exit()
    if A[1]==A[2]:
        print('Yes')
        sys.exit() A[0]!=A[2] A[0] A 0 A[2] A 2 if A[0]==A[1]:
        print('Yes')
        sys.exit()
     A[0]==A[1] A[0] A 0 A[1] A 1 print('Yes') print 'Yes' sys.exit() sys.exit sys exit if A[1]==A[2]:
        print('Yes')
        sys.exit() A[1]==A[2] A[1] A 1 A[2] A 2 print('Yes') print 'Yes' sys.exit() sys.exit sys exit print('No') print 'No' end_time = time.perf_counter() end_time time.perf_counter() time.perf_counter time perf_counter print('time:', end_time-start_time, file=sys.stderr) print 'time:' end_time-start_time end_time start_time file=sys.stderr file sys.stderr sys stderr def inpl():
    return list(map(int, input().split())) def inpl():
    return list(map(int, input().split())) inpl read = sys.stdin.readline sys.stdin.readline read def inp():
    return int(input()) def inp():
    return int(input()) inp end_time = time.perf_counter() time.perf_counter() end_time start_time = time.perf_counter() time.perf_counter() start_time A = inpl() inpl() A
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))
start_time = time.perf_counter()
# ------------------------------

A = inpl()
A.sort()
if A[0]!=A[2]:
    if A[0]==A[1]:
        print('Yes')
        sys.exit()
    if A[1]==A[2]:
        print('Yes')
        sys.exit()
print('No')


# -----------------------------
end_time = time.perf_counter()
print('time:', end_time-start_time, file=sys.stderr)