a = set(map(int, input().split()))
if len(a) == 2:
    print('Yes')
else:
    print('No') a = set(map(int, input().split())) a set(map(int, input().split())) set map(int, input().split()) map int input().split() ().split () input split if len(a) == 2:
    print('Yes')
else:
    print('No') len(a) == 2 len(a) len a 2 print('Yes') print 'Yes' print('No') print 'No' a = set(map(int, input().split())) set(map(int, input().split())) a
a = set(map(int, input().split()))
if len(a) == 2:
    print('Yes')
else:
    print('No')