from collections import Counter
ABC = list(map(int, input().split()))
ABC = Counter(ABC)
if len(ABC) == 2:
    ans = 'Yes'
else:
    ans = 'No'
print(ans) from collections import Counter ABC = list(map(int, input().split())) ABC list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ABC = Counter(ABC) ABC Counter(ABC) Counter ABC if len(ABC) == 2:
    ans = 'Yes'
else:
    ans = 'No' len(ABC) == 2 len(ABC) len ABC 2 ans = 'Yes' ans 'Yes' ans = 'No' ans 'No' print(ans) print ans ans = 'Yes' 'Yes' ans ABC = Counter(ABC) Counter(ABC) ABC ABC = list(map(int, input().split())) list(map(int, input().split())) ABC ans = 'No' 'No' ans
from collections import Counter
ABC = list(map(int, input().split()))
ABC = Counter(ABC)
if len(ABC) == 2:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)
