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