from collections import Counter
abc = Counter(input().split())
if len(abc) == 2:
    print('Yes')
else:
    print('No') from collections import Counter abc = Counter(input().split()) abc Counter(input().split()) Counter input().split() ().split () input split 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(input().split()) Counter(input().split()) abc
from collections import Counter
abc = Counter(input().split())
if len(abc) == 2:
    print('Yes')
else:
    print('No')