import collections
l = list(map(int,input().split()))
c = collections.Counter(l)
ans = 'No'

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

if len(c) == 2:
    ans = 'Yes'
print(ans)