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